![]() |
Toolbox snapshot
The Reactive C++ Toolbox
|
Namespaces | |
namespace | detail |
Concepts | |
concept | Arithmetic |
concept | Enum |
concept | Streamable |
concept | IsIntWrapper |
Typedefs | |
using | Int16Policy = IntPolicy< std::int16_t > |
using | Int32Policy = IntPolicy< std::int32_t > |
using | Int64Policy = IntPolicy< std::int64_t > |
using | Id16 = IntWrapper< Id16Policy > |
16 bit identifier. | |
using | Id32 = IntWrapper< Id32Policy > |
32 bit identifier. | |
using | Id64 = IntWrapper< Id64Policy > |
64 bit identifier. | |
template<typename KeyT > | |
using | RobinHash = robin_hood::hash< KeyT > |
Robin Hood hash function template. | |
template<typename KeyT , typename ValueT , typename HashT = RobinHash<KeyT>, typename KeyEqualT = std::equal_to<KeyT>, std::size_t MaxLoadFactor100N = 80> | |
using | RobinMap = robin_hood::unordered_map< KeyT, ValueT, HashT, KeyEqualT, MaxLoadFactor100N > |
template<typename KeyT , typename ValueT , typename HashT = RobinHash<KeyT>, typename KeyEqualT = std::equal_to<KeyT>, std::size_t MaxLoadFactor100N = 80> | |
using | RobinFlatMap = robin_hood::unordered_flat_map< KeyT, ValueT, HashT, KeyEqualT, MaxLoadFactor100N > |
Robin Hood unordered flat map. | |
template<typename KeyT , typename ValueT , typename HashT = RobinHash<KeyT>, typename KeyEqualT = std::equal_to<KeyT>, std::size_t MaxLoadFactor100N = 80> | |
using | RobinNodeMap = robin_hood::unordered_node_map< KeyT, ValueT, HashT, KeyEqualT, MaxLoadFactor100N > |
Robin Hood unordered node map. | |
template<typename KeyT , typename HashT = RobinHash<KeyT>, typename KeyEqualT = std::equal_to<KeyT>, std::size_t MaxLoadFactor100N = 80> | |
using | RobinSet = robin_hood::unordered_set< KeyT, HashT, KeyEqualT, MaxLoadFactor100N > |
template<typename KeyT , typename HashT = RobinHash<KeyT>, typename KeyEqualT = std::equal_to<KeyT>, std::size_t MaxLoadFactor100N = 80> | |
using | RobinFlatSet = robin_hood::unordered_flat_set< KeyT, HashT, KeyEqualT, MaxLoadFactor100N > |
Robin Hood unordered flat set. | |
template<typename KeyT , typename HashT = RobinHash<KeyT>, typename KeyEqualT = std::equal_to<KeyT>, std::size_t MaxLoadFactor100N = 80> | |
using | RobinNodeSet = robin_hood::unordered_node_set< KeyT, HashT, KeyEqualT, MaxLoadFactor100N > |
Robin Hood unordered node set. | |
template<std::size_t SizeN> | |
using | StoragePtr = std::unique_ptr< void, detail::StorageDeleter< SizeN > > |
using | OStreamJoiner = std::experimental::ostream_joiner< char > |
using | sv = std::string_view |
template<std::size_t N> | |
using | Row = std::array< std::string_view, N > |
template<typename T > | |
using | is_string = is_instantiation_of< T, std::basic_string > |
template<typename T > | |
using | is_string_view = is_instantiation_of< T, std::basic_string_view > |
Enumerations | |
enum class | Test : int { Foo = 1 , Bar = 2 , Baz = 4 , Qux = 8 } |
Functions | |
template<typename ValueT , std::size_t SizeN> | |
constexpr std::size_t | array_size (const ValueT(&)[SizeN]) noexcept |
template<typename ValueT > | |
constexpr ArrayView< std::remove_volatile_t< ValueT > > | make_array_view (const ValueT *ptr, std::size_t len) noexcept |
template<typename ValueT , std::size_t SizeN> | |
constexpr ArrayView< std::remove_cv_t< ValueT > > | make_array_view (ValueT(&arr)[SizeN]) noexcept |
template<typename FnT > | |
std::istream & | parse_section (std::istream &is, FnT fn, std::string *name=nullptr) |
template<typename EnumT > requires Enum<EnumT> | |
constexpr EnumT | box (typename std::underlying_type_t< EnumT > val) noexcept |
template<typename EnumT > requires Enum<EnumT> | |
constexpr std::underlying_type_t< EnumT > | unbox (EnumT val) noexcept |
constexpr Test | operator""_test (unsigned long long val) noexcept |
const char * | enum_string (Test t) |
ostream & | operator<< (ostream &os, Test t) |
ErrMsg & | err_msg () noexcept |
template<typename ValueT > | |
ErrMsg & | operator<< (ErrMsg &err, ValueT &&val) |
template<typename ExceptionT > | |
auto | put_as_json (const ExceptionT &e) |
template<typename ExceptionT > | |
auto | put_with_code (const ExceptionT &e) |
template<typename FnT > | |
auto | make_finally (FnT fn) noexcept |
template<typename PolicyT > | |
std::size_t | hash_value (IntWrapper< PolicyT > wrapper) |
constexpr Id16 | operator""_id16 (unsigned long long val) noexcept |
constexpr Id32 | operator""_id32 (unsigned long long val) noexcept |
constexpr Id64 | operator""_id64 (unsigned long long val) noexcept |
constexpr bool | is_pow2 (std::size_t n) noexcept |
unsigned | next_pow2 (unsigned n) noexcept |
unsigned long | next_pow2 (unsigned long n) noexcept |
template<int BitsN> | |
constexpr std::size_t | ceil_pow2 (std::size_t size) noexcept |
double | var (const VarAccum &v) noexcept |
double | varp (const VarAccum &v) noexcept |
double | stdev (const VarAccum &v) noexcept |
double | stdevp (const VarAccum &v) noexcept |
double | zscore (double mean, double sd, double val) noexcept |
double | pctile95 (double mean, double sd) noexcept |
double | pctile99 (double mean, double sd) noexcept |
double | pctile999 (double mean, double sd) noexcept |
constexpr std::size_t | ceil (std::size_t dividend, std::size_t divisor) noexcept |
constexpr std::uint64_t | pow10 (int n) noexcept |
template<typename StreamT > requires Streamable<StreamT> | |
StreamT & | operator<< (StreamT &out, const Options &options) |
std::mt19937_64 & | mt19937_64_rng () noexcept |
template<class IntT > | |
IntT | randint (IntT a, IntT b) |
template<typename DerivedT , typename PolicyT > | |
void | intrusive_ptr_add_ref (const RefCount< DerivedT, PolicyT > *ptr) noexcept |
template<typename DerivedT , typename PolicyT > | |
void | intrusive_ptr_release (const RefCount< DerivedT, PolicyT > *ptr) noexcept |
template<typename ValueT , typename... ArgsT> | |
boost::intrusive_ptr< ValueT > | make_intrusive (ArgsT &&... args) |
template<auto FnT> | |
constexpr auto | bind () noexcept |
template<typename ClassT > | |
constexpr auto | bind (ClassT *obj) noexcept |
template<auto MemFnT, typename ClassT = typename FunctionTraits<decltype(MemFnT)>::ClassType> | |
constexpr auto | bind (ClassT *obj) noexcept |
template<std::size_t SizeN> | |
StoragePtr< SizeN > | make_storage () |
Returns a block of dynamic storage acquired from the custom allocator. | |
TOOLBOX_API void | reset (std::ostream &os) noexcept |
template<auto DelimT, typename ArgT , typename... ArgsT> | |
void | join (std::ostream &os, const ArgT &arg, const ArgsT &... args) |
template<typename OStreamT , typename FnT > | |
auto | make_stream_inserter (FnT fn) |
Returns a StreamInserter object, automatically deducing functor type from arguments. | |
void | ltrim (string_view &s) noexcept |
void | ltrim (string &s) noexcept |
void | rtrim (string_view &s) noexcept |
void | rtrim (string &s) noexcept |
pair< string_view, string_view > | split_pair (string_view s, string_view delim) noexcept |
pair< string_view, string_view > | split_pair (string_view s, char delim) noexcept |
pair< string, string > | split_pair (const string &s, string_view delim) |
pair< string, string > | split_pair (const string &s, char delim) |
template<typename ValueT > | |
constexpr ValueT | from_string (std::string_view sv) |
template<typename ValueT > | |
constexpr ValueT | from_string (const std::string &s) |
template<typename ValueT > | |
constexpr ValueT | from_string (const char *s) |
template<typename ValueT > | |
std::string | to_string (ValueT &&val) |
template<typename ValueT > requires Arithmetic<ValueT> | |
std::string | to_string (ValueT &&val) |
template<std::size_t SizeN> | |
constexpr std::string_view | to_string_view (const char(&val)[SizeN]) noexcept |
void | trim (std::string_view &s) noexcept |
void | trim (std::string &s) noexcept |
std::string_view | ltrim_copy (std::string_view s) noexcept |
std::string | ltrim_copy (std::string s) noexcept |
std::string_view | rtrim_copy (std::string_view s) noexcept |
std::string | rtrim_copy (std::string s) noexcept |
std::string_view | trim_copy (std::string_view s) noexcept |
std::string | trim_copy (std::string s) noexcept |
template<char PadC> | |
constexpr std::size_t | pstrlen (const char *src, std::size_t n) noexcept |
template<char PadC, std::size_t SizeN> | |
constexpr std::size_t | pstrlen (const char(&src)[SizeN]) noexcept |
template<char PadC> | |
constexpr std::size_t | pstrcpy (char *dst, const char *src, std::size_t n) noexcept |
template<char PadC, std::size_t SizeN> | |
constexpr std::size_t | pstrcpy (char(&dst)[SizeN], const char *src) noexcept |
template<char PadC> | |
constexpr std::size_t | pstrcpy (char *dst, std::string_view src, std::size_t n) noexcept |
template<char PadC, std::size_t SizeN> | |
constexpr std::size_t | pstrcpy (char(&dst)[SizeN], std::string_view src) noexcept |
template<char PadC> | |
constexpr std::size_t | pstrcpyid (char *dst, std::int64_t id, std::size_t n) noexcept |
template<char PadC, std::size_t SizeN> | |
constexpr std::size_t | pstrcpyid (char(&dst)[SizeN], std::int64_t id) noexcept |
template<char PadC> | |
constexpr std::size_t | lpstrlen (const char *src, std::size_t n) noexcept |
template<char PadC, std::size_t SizeN> | |
constexpr std::size_t | lpstrlen (const char(&src)[SizeN]) noexcept |
template<char PadC> | |
constexpr std::size_t | lpstrcpy (char *dst, const char *src, std::size_t n) noexcept |
template<char PadC, std::size_t SizeN> | |
constexpr std::size_t | lpstrcpy (char(&dst)[SizeN], const char *src) noexcept |
template<char PadC> | |
constexpr std::size_t | lpstrcpy (char *dst, std::string_view src, std::size_t n) noexcept |
template<char PadC, std::size_t SizeN> | |
constexpr std::size_t | lpstrcpy (char(&dst)[SizeN], std::string_view src) noexcept |
template<typename... ArgsT> | |
std::string | make_string (ArgsT &&... args) |
template<std::size_t MaxN> | |
constexpr std::string_view | operator+ (const StringBuf< MaxN > &s) noexcept |
template<std::size_t MaxN, typename StreamT > requires Streamable<StreamT> | |
StreamT & | operator<< (StreamT &os, const StringBuf< MaxN > &rhs) |
template<typename... TagsT, typename... ValuesT> | |
constexpr bool | empty (const detail::Struct< detail::Member< TagsT, ValuesT >... > &s) |
template<typename... TagsT, typename... ValuesT> | |
constexpr std::size_t | size (const detail::Struct< detail::Member< TagsT, ValuesT >... > &s) |
template<typename TagT , typename... TagsT, typename... ValuesT> | |
constexpr bool | has (const detail::Struct< detail::Member< TagsT, ValuesT >... > &s, TagT tag={}) |
template<typename TagT , typename... TagsT, typename... ValuesT> | |
constexpr const auto & | get (const detail::Struct< detail::Member< TagsT, ValuesT >... > &s, TagT tag={}) |
template<typename TagT , typename... TagsT, typename... ValuesT> | |
constexpr auto & | get (detail::Struct< detail::Member< TagsT, ValuesT >... > &s, TagT tag={}) |
template<typename FnT > | |
constexpr std::size_t | parse_line (std::string_view buf, FnT fn) |
template<std::size_t N> | |
constexpr void | split (std::string_view line, std::string_view delims, Row< N > &row) noexcept |
bool | stob (string_view sv, bool dfl) noexcept |
double | stod (std::string_view sv, double dfl) noexcept |
template<typename ValueT > | |
auto & | remove_const (const ValueT &ref) |
constexpr bool | isdigit (int c) noexcept |
template<typename ValueT > requires std::unsigned_integral<ValueT> | |
constexpr int | dec_digits (ValueT i) noexcept |
template<typename ValueT > requires std::signed_integral<ValueT> | |
constexpr int | dec_digits (ValueT i) noexcept |
template<typename UIntegerT > requires std::unsigned_integral<UIntegerT> | |
constexpr int | hex_digits (UIntegerT i) noexcept |
template<typename ValueT > requires std::integral<ValueT> || std::same_as<ValueT, double> | |
constexpr ValueT | ston (std::string_view sv) noexcept |
constexpr std::string_view | bool_to_alpha (bool b) noexcept |
template<class... Ts> | |
overloaded (Ts...) -> overloaded< Ts... > | |
string | get_env (const string &name) |
template<typename StreamT > requires Streamable<StreamT> | |
StreamT & | operator<< (StreamT &os, Version ver) |
std::size_t | hash_value (toolbox::Version ver) |
Variables | |
constexpr std::size_t | MaxErrSize {511} |
Maximum error message length. | |
constexpr detail::ResetState | reset_state {} |
I/O manipulator that resets I/O state. | |
constexpr auto | Struct = detail::Struct<>{} |
template<typename T , template< typename... > class Tpl> | |
constexpr bool | is_instantiation_of_v = is_instantiation_of<T, Tpl>::value |
template<typename T > | |
constexpr bool | is_string_v = is_string<T>::value |
template<typename T > | |
constexpr bool | is_string_view_v = is_string_view<T>::value |
template<typename T > | |
constexpr bool | is_decay_to_cstring_v = is_decay_to_cstring<T>::value |
template<typename T > | |
constexpr bool | is_string_type_v = is_string_type<T>::value |
using toolbox::util::Int16Policy = typedef IntPolicy<std::int16_t> |
Definition at line 34 of file IntTypes.hpp.
using toolbox::util::Int32Policy = typedef IntPolicy<std::int32_t> |
Definition at line 35 of file IntTypes.hpp.
using toolbox::util::Int64Policy = typedef IntPolicy<std::int64_t> |
Definition at line 36 of file IntTypes.hpp.
16 bit identifier.
Definition at line 285 of file IntTypes.hpp.
32 bit identifier.
Definition at line 293 of file IntTypes.hpp.
64 bit identifier.
Definition at line 301 of file IntTypes.hpp.
Robin Hood hash function template.
Definition at line 30 of file RobinHood.hpp.
using toolbox::util::RobinMap = typedef robin_hood::unordered_map<KeyT, ValueT, HashT, KeyEqualT, MaxLoadFactor100N> |
Robin Hood unordered map.
Robin Hood unordered map is a replacement for std::unordered_map which is both faster and more memory efficient for real-world use cases.
Definition at line 38 of file RobinHood.hpp.
using toolbox::util::RobinFlatMap = typedef robin_hood::unordered_flat_map<KeyT, ValueT, HashT, KeyEqualT, MaxLoadFactor100N> |
Robin Hood unordered flat map.
Definition at line 43 of file RobinHood.hpp.
using toolbox::util::RobinNodeMap = typedef robin_hood::unordered_node_map<KeyT, ValueT, HashT, KeyEqualT, MaxLoadFactor100N> |
Robin Hood unordered node map.
Definition at line 49 of file RobinHood.hpp.
using toolbox::util::RobinSet = typedef robin_hood::unordered_set<KeyT, HashT, KeyEqualT, MaxLoadFactor100N> |
Robin Hood unordered set.
Robin Hood unordered set is a replacement for std::unordered_set which is both faster and more memory efficient for real-world use cases.
Definition at line 58 of file RobinHood.hpp.
using toolbox::util::RobinFlatSet = typedef robin_hood::unordered_flat_set<KeyT, HashT, KeyEqualT, MaxLoadFactor100N> |
Robin Hood unordered flat set.
Definition at line 63 of file RobinHood.hpp.
using toolbox::util::RobinNodeSet = typedef robin_hood::unordered_node_set<KeyT, HashT, KeyEqualT, MaxLoadFactor100N> |
Robin Hood unordered node set.
Definition at line 68 of file RobinHood.hpp.
using toolbox::util::StoragePtr = typedef std::unique_ptr<void, detail::StorageDeleter<SizeN> > |
Definition at line 34 of file Storage.hpp.
using toolbox::util::OStreamJoiner = typedef std::experimental::ostream_joiner<char> |
Definition at line 246 of file Stream.hpp.
using toolbox::util::sv = typedef std::string_view |
Definition at line 26 of file Tokeniser.hpp.
using toolbox::util::Row = typedef std::array<std::string_view, N> |
Definition at line 97 of file Tokeniser.hpp.
using toolbox::util::is_string = typedef is_instantiation_of<T, std::basic_string> |
Definition at line 80 of file TypeTraits.hpp.
using toolbox::util::is_string_view = typedef is_instantiation_of<T, std::basic_string_view> |
Definition at line 86 of file TypeTraits.hpp.
|
strong |
Enumerator | |
---|---|
Foo | |
Bar | |
Baz | |
Qux |
Definition at line 30 of file Enum.ut.cpp.
std::istream & toolbox::util::parse_section | ( | std::istream & | is, |
FnT | fn, | ||
std::string * | name = nullptr |
||
) |
Definition at line 33 of file Config.hpp.
Definition at line 32 of file Enum.ut.cpp.
Definition at line 37 of file Enum.ut.cpp.
|
inline |
Definition at line 52 of file Enum.ut.cpp.
|
noexcept |
Thread-local error message. This thread-local instance of OStaticStream can be used to format error messages before throwing. Note that the OStaticStream is reset each time this function is called.
Definition at line 57 of file Exception.cpp.
Definition at line 39 of file Exception.hpp.
auto toolbox::util::put_as_json | ( | const ExceptionT & | e | ) |
Definition at line 119 of file Exception.hpp.
auto toolbox::util::put_with_code | ( | const ExceptionT & | e | ) |
Definition at line 125 of file Exception.hpp.
Definition at line 48 of file Finally.hpp.
std::size_t toolbox::util::hash_value | ( | IntWrapper< PolicyT > | wrapper | ) |
Definition at line 264 of file IntTypes.hpp.
Definition at line 287 of file IntTypes.hpp.
Definition at line 295 of file IntTypes.hpp.
Definition at line 303 of file IntTypes.hpp.
Definition at line 109 of file Math.hpp.
Referenced by toolbox::util::Value::Value(), and toolbox::util::Value::Value().
|
constexprnoexcept |
StreamT & toolbox::util::operator<< | ( | StreamT & | out, |
const Options & | options | ||
) |
Definition at line 229 of file Options.hpp.
|
noexcept |
Definition at line 28 of file Random.cpp.
Definition at line 30 of file Random.hpp.
Definition at line 89 of file RefCount.hpp.
Definition at line 95 of file RefCount.hpp.
Definition at line 101 of file RefCount.hpp.
|
constexprnoexcept |
Definition at line 92 of file Slot.hpp.
Referenced by toolbox::util::Alarm::Alarm(), toolbox::util::StringBuf< MaxN >::append(), toolbox::util::ArrayView< ValueT >::ArrayView(), toolbox::util::ArrayView< ValueT >::ArrayView(), toolbox::util::ArrayView< ValueT >::ArrayView(), toolbox::util::StringBuf< MaxN >::assign(), toolbox::util::TaskQueue< TaskT >::clear(), toolbox::util::TransTraits< TargetT >::commit(), toolbox::util::StreamBuf< MaxN >::data(), toolbox::util::StaticStreamBuf< MaxN >::data(), toolbox::util::StreamBuf< MaxN >::empty(), toolbox::util::StaticStreamBuf< MaxN >::empty(), toolbox::util::RingBuffer< ValueT >::fetch(), toolbox::util::TypeTraits< DgramEndpoint >::from_string(), toolbox::util::TypeTraits< StreamEndpoint >::from_string(), toolbox::util::TypeTraits< std::string >::from_string(), toolbox::util::TypeTraits< std::chrono::duration< RepT, PeriodT > >::from_string(), toolbox::util::TypeTraits< WallTime >::from_string(), toolbox::util::TypeTraits< Version >::from_string(), toolbox::util::TypeTraits< std::chrono::duration< RepT, PeriodT > >::from_string(), toolbox::util::TypeTraits< WallTime >::from_string(), toolbox::util::TypeTraits< ValueT >::from_string(), toolbox::util::TypeTraits< ValueT >::from_string(), toolbox::util::Config::get(), toolbox::util::Config::get(), toolbox::util::OStream< MaxN >::make_storage(), toolbox::util::Tokeniser::next(), toolbox::util::string_hash::operator()(), toolbox::util::string_hash::operator()(), toolbox::util::string_hash::operator()(), toolbox::util::detail::StorageDeleter< SizeN >::operator()(), toolbox::util::StringBuf< MaxN >::operator+=(), toolbox::util::StringBuf< MaxN >::operator+=(), toolbox::util::StringBuf< MaxN >::operator<=>(), toolbox::util::Alarm::operator=(), toolbox::util::StringBuf< MaxN >::operator=(), toolbox::util::StringBuf< MaxN >::operator=(), toolbox::util::OStreamIterator< StreamT >::operator=(), toolbox::util::StringBuf< MaxN >::operator=(), toolbox::util::StringBuf< MaxN >::operator==(), toolbox::util::ArrayView< ValueT >::operator[](), toolbox::util::OStaticStream< MaxN >::OStaticStream(), toolbox::util::OStream< MaxN >::OStream(), toolbox::util::Options::parse(), toolbox::util::ArgvLexer::pop_value(), toolbox::util::RingBuffer< ValueT >::push(), toolbox::util::TaskQueue< TaskT >::push(), toolbox::util::MultiConfig::read(), toolbox::util::RefCount< DerivedT, PolicyT >::release(), toolbox::util::StreamBuf< MaxN >::release_storage(), toolbox::util::Presence< DerivedT >::required(), toolbox::util::StreamBuf< MaxN >::reset(), toolbox::util::StaticStreamBuf< MaxN >::reset(), toolbox::util::Tokeniser::reset(), toolbox::util::TransTraits< TargetT >::rollback(), toolbox::util::TaskQueue< TaskT >::run(), toolbox::util::StreamBuf< MaxN >::set_storage(), toolbox::util::OStream< MaxN >::set_storage(), toolbox::util::StreamBuf< MaxN >::size(), toolbox::util::StaticStreamBuf< MaxN >::size(), toolbox::util::TransTraits< TargetT >::start(), toolbox::util::TaskQueue< TaskT >::stop(), toolbox::util::StreamBuf< MaxN >::StreamBuf(), toolbox::util::StringBuf< MaxN >::StringBuf(), toolbox::util::StringBuf< MaxN >::StringBuf(), toolbox::util::StringBuf< MaxN >::StringBuf(), toolbox::util::ArrayView< ValueT >::swap(), toolbox::util::Version::swap(), toolbox::util::Exception::to_json(), toolbox::util::Tokeniser::Tokeniser(), toolbox::util::Value::Value(), toolbox::util::Value::Value(), and toolbox::util::RingBuffer< ValueT >::write().
|
constexprnoexcept |
|
constexprnoexcept |
StoragePtr< SizeN > toolbox::util::make_storage | ( | ) |
Returns a block of dynamic storage acquired from the custom allocator.
Definition at line 38 of file Storage.hpp.
|
noexcept |
Definition at line 249 of file Stream.hpp.
Returns a StreamInserter object, automatically deducing functor type from arguments.
Definition at line 59 of file StreamInserter.hpp.
|
noexcept |
Definition at line 28 of file String.cpp.
|
noexcept |
Definition at line 34 of file String.cpp.
|
noexcept |
Definition at line 40 of file String.cpp.
|
noexcept |
Definition at line 46 of file String.cpp.
|
noexcept |
Definition at line 52 of file String.cpp.
Referenced by toolbox::util::TypeTraits< Version >::from_string().
|
noexcept |
Definition at line 65 of file String.cpp.
TOOLBOX_API std::pair< std::string, std::string > toolbox::util::split_pair | ( | const string & | s, |
string_view | delim | ||
) |
Definition at line 70 of file String.cpp.
TOOLBOX_API std::pair< std::string, std::string > toolbox::util::split_pair | ( | const string & | s, |
char | delim | ||
) |
Definition at line 76 of file String.cpp.
Definition at line 31 of file String.hpp.
Definition at line 39 of file String.hpp.
Definition at line 46 of file String.hpp.
Definition at line 54 of file String.hpp.
std::string toolbox::util::to_string | ( | ValueT && | val | ) |
Definition at line 64 of file String.hpp.
|
constexprnoexcept |
Definition at line 71 of file String.hpp.
|
inlinenoexcept |
Definition at line 84 of file String.hpp.
|
inlinenoexcept |
Definition at line 90 of file String.hpp.
|
inlinenoexcept |
Definition at line 96 of file String.hpp.
|
inlinenoexcept |
Definition at line 102 of file String.hpp.
|
inlinenoexcept |
Definition at line 108 of file String.hpp.
|
inlinenoexcept |
Definition at line 114 of file String.hpp.
|
inlinenoexcept |
Definition at line 120 of file String.hpp.
|
inlinenoexcept |
Definition at line 126 of file String.hpp.
|
constexprnoexcept |
Returns the length of right-padded string.
PadC | The character used for padding. |
src | The source string. |
n | The maximum size of the source string. |
Definition at line 149 of file String.hpp.
|
constexprnoexcept |
Returns the length of right-padded string.
PadC | The character used for padding. |
SizeN | The maximum size of the source string. |
src | The source string. |
Definition at line 169 of file String.hpp.
|
constexprnoexcept |
Copy src string to right-padded buffer dst.
PadC | The character used for padding. |
dst | The destination buffer. |
src | The source string. |
n | The maximum size of the destination buffer. |
Definition at line 181 of file String.hpp.
|
constexprnoexcept |
Copy src string to right-padded buffer dst.
PadC | The character used for padding. |
SizeN | The maximum size of the destination buffer. |
dst | The destination buffer. |
src | The source string. |
Definition at line 212 of file String.hpp.
|
constexprnoexcept |
Copy src string to right-padded buffer dst.
PadC | The character used for padding. |
dst | The destination buffer. |
src | The source string. |
n | The maximum size of the destination buffer. |
Definition at line 224 of file String.hpp.
|
constexprnoexcept |
Copy src string to right-padded buffer dst.
PadC | The character used for padding. |
SizeN | The maximum size of the destination buffer. |
dst | The destination buffer. |
src | The source string. |
Definition at line 243 of file String.hpp.
|
constexprnoexcept |
Definition at line 249 of file String.hpp.
|
constexprnoexcept |
Definition at line 263 of file String.hpp.
|
constexprnoexcept |
Returns the length of left-padded string.
PadC | The character used for padding. |
src | The source string. |
n | The maximum size of the source string. |
Definition at line 274 of file String.hpp.
|
constexprnoexcept |
Returns the length of left-padded string.
PadC | The character used for padding. |
SizeN | The maximum size of the source string. |
src | The source string. |
Definition at line 289 of file String.hpp.
|
constexprnoexcept |
Copy src string to left-padded buffer dst.
PadC | The character used for padding. |
dst | The destination buffer. |
src | The source string. |
n | The maximum size of the destination buffer. |
Definition at line 301 of file String.hpp.
|
constexprnoexcept |
Copy src string to left-padded buffer dst.
PadC | The character used for padding. |
SizeN | The maximum size of the destination buffer. |
dst | The destination buffer. |
src | The source string. |
Definition at line 320 of file String.hpp.
|
constexprnoexcept |
Copy src string to left-padded buffer dst.
PadC | The character used for padding. |
dst | The destination buffer. |
src | The source string. |
n | The maximum size of the destination buffer. |
Definition at line 332 of file String.hpp.
|
constexprnoexcept |
Copy src string to left-padded buffer dst.
PadC | The character used for padding. |
SizeN | The maximum size of the destination buffer. |
dst | The destination buffer. |
src | The source string. |
Definition at line 351 of file String.hpp.
std::string toolbox::util::make_string | ( | ArgsT &&... | args | ) |
Definition at line 357 of file String.hpp.
|
constexprnoexcept |
Definition at line 132 of file StringBuf.hpp.
Definition at line 139 of file StringBuf.hpp.
|
constexpr |
Definition at line 92 of file Struct.hpp.
|
constexpr |
Definition at line 98 of file Struct.hpp.
Referenced by toolbox::util::Allocator::operator delete(), and toolbox::util::Allocator::operator new().
|
constexpr |
Definition at line 104 of file Struct.hpp.
|
constexpr |
Definition at line 110 of file Struct.hpp.
|
constexpr |
Definition at line 116 of file Struct.hpp.
Definition at line 86 of file Tokeniser.hpp.
|
constexprnoexcept |
Definition at line 100 of file Tokeniser.hpp.
|
noexcept |
Definition at line 26 of file Utility.cpp.
Referenced by toolbox::util::TypeTraits< bool >::from_string().
|
noexcept |
Definition at line 89 of file Utility.cpp.
Referenced by toolbox::util::TypeTraits< double >::from_string().
Definition at line 35 of file Utility.hpp.
Definition at line 40 of file Utility.hpp.
Returns the number of decimal digits in a unsigned integer.
i | integer value. |
Definition at line 52 of file Utility.hpp.
Referenced by toolbox::util::Version::size().
Returns the number of decimal digits in a signed integer.
i | integer value. |
Definition at line 82 of file Utility.hpp.
Returns the number of hexadecimal digits in a positive integer.
UIntegerT | Integer type. |
i | Integer value. |
Definition at line 103 of file Utility.hpp.
Definition at line 118 of file Utility.hpp.
Definition at line 168 of file Utility.hpp.
toolbox::util::overloaded | ( | Ts... | ) | -> overloaded< Ts... > |
TOOLBOX_API std::string toolbox::util::get_env | ( | const string & | name | ) |
Definition at line 25 of file VarSub.cpp.
StreamT & toolbox::util::operator<< | ( | StreamT & | os, |
Version | ver | ||
) |
Definition at line 70 of file Version.hpp.
|
inline |
Definition at line 89 of file Version.hpp.
|
constexpr |
Maximum error message length.
Definition at line 29 of file Exception.hpp.
|
constexpr |
I/O manipulator that resets I/O state.
Definition at line 35 of file Stream.hpp.
|
constexpr |
Definition at line 89 of file Struct.hpp.
|
inlineconstexpr |
Definition at line 77 of file TypeTraits.hpp.
|
inlineconstexpr |
Definition at line 83 of file TypeTraits.hpp.
|
inlineconstexpr |
Definition at line 89 of file TypeTraits.hpp.
|
inlineconstexpr |
Definition at line 101 of file TypeTraits.hpp.
|
inlineconstexpr |
Definition at line 109 of file TypeTraits.hpp.