Flow 1.0.0
Flow project: Full implementation reference.
|
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. | |
namespace | flow::util::bind_ns |
Hack namespace alias to enable use of bind and related utilities like cref in the face of strange observed compiler behavior. | |
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... | |