Flow 3.0.0
Flow project: Full implementation reference.
Namespaces | Typedefs | Functions | Variables
util_fwd.hpp File Reference
#include "flow/util/string_view.hpp"
#include "flow/common.hpp"
#include <boost/shared_ptr.hpp>
#include <boost/unordered/unordered_flat_set.hpp>

Go to the source code of this file.

Namespaces

namespace  flow
 Catch-all namespace for the Flow project: A collection of various production-quality modules written in modern C++17, originally by ygoldfel.
 
namespace  flow::util
 Flow module containing miscellaneous general-use facilities that don't fit into any other Flow module.
 

Typedefs

template<typename Key , typename Iterator , typename Hash , typename Pred , bool IS_ITER_TO_PAIR>
using flow::util::Linked_hash_key_set = boost::unordered_flat_set< Linked_hash_key< Key, Iterator, IS_ITER_TO_PAIR >, Linked_hash_key_hash< Hash >, Linked_hash_key_pred< Pred > >
 The lookup structure used inside Linked_hash_map and Linked_hash_set. More...
 

Functions

template<typename Rep , typename Period >
Fine_duration flow::util::chrono_duration_to_fine_duration (const boost::chrono::duration< Rep, Period > &dur)
 Helper that takes a non-negative duration of arbitrary precision/period and converts it to Fine_duration, rounding up. More...
 
template<typename Rep , typename Period >
Fine_time_pt flow::util::chrono_duration_from_now_to_fine_time_pt (const boost::chrono::duration< Rep, Period > &dur)
 Helper that takes a non-negative duration of arbitrary precision/period and converts it to Fine_duration, rounding up; then adds it to Fine_clock::now() and returns the result. More...
 
constexpr String_view flow::util::get_last_path_segment (String_view path)
 Helper for FLOW_UTIL_WHERE_AM_I() that, given a pointer/length of a string in memory containing a path, returns a pointer/length into that same buffer that comprises the postfix just past the last directory separator or (if none exists) to all of it. More...
 
std::string flow::util::get_where_am_i_str (String_view file, String_view function, unsigned int line)
 Helper for FLOW_UTIL_WHERE_AM_I(), etc., that, given values for source code file name, function, and line number, returns an std::string equal to what FLOW_UTIL_WHERE_AM_I() would place into an ostream. More...
 

Variables

constexpr size_t flow::util::LINKED_HASH_KEY_SET_DEFAULT_N_BUCKETS = boost::unordered::detail::foa::default_bucket_count
 Value used by alias-target type of Linked_hash_key_set as the default hash bucket count, if one does not explicitly specify it. More...