C++ Utilities
5.10.5
Useful C++ classes and routines such as argument parser, IO and conversion utilities
|
Go to the source code of this file.
Namespaces | |
CppUtilities | |
Contains all utilities provides by the c++utilities library. | |
Functions | |
template<class StringType = std::string, class... Args> | |
StringType | CppUtilities::tupleToString (const std::tuple< Args... > &tuple) |
Concatenates all strings hold by the specified tuple. More... | |
template<class StringType = std::string, class... Args> | |
StringType | CppUtilities::argsToString (Args &&...args) |
template<class Tuple , class StringType , Traits::EnableIfAny< Traits::IsSpecializationOf< StringType, std::basic_string >, Traits::IsSpecializationOf< StringType, std::basic_string_view >> * = nullptr> | |
constexpr auto | CppUtilities::operator% (const Tuple &lhs, const StringType &rhs) -> decltype(std::tuple_cat(lhs, std::make_tuple(&rhs))) |
Allows construction of string-tuples via %-operator, eg. More... | |
template<class Tuple > | |
constexpr auto | CppUtilities::operator% (const Tuple &lhs, const char *rhs) -> decltype(std::tuple_cat(lhs, std::make_tuple(rhs))) |
Allows construction of string-tuples via %-operator, eg. More... | |
template<class Tuple , typename IntegralType , Traits::EnableIf< std::is_integral< IntegralType >> * = nullptr> | |
constexpr auto | CppUtilities::operator% (const Tuple &lhs, IntegralType rhs) -> decltype(std::tuple_cat(lhs, std::make_tuple(rhs))) |
Allows construction of string-tuples via %-operator, eg. More... | |
template<class StringType , Traits::EnableIfAny< Traits::IsSpecializationOf< StringType, std::basic_string >, Traits::IsSpecializationOf< StringType, std::basic_string_view >> * = nullptr> | |
constexpr auto | CppUtilities::operator% (const StringType &lhs, const StringType &rhs) -> decltype(std::make_tuple(&lhs, &rhs)) |
Allows construction of string-tuples via %-operator, eg. More... | |
template<class StringType , Traits::EnableIfAny< Traits::IsSpecializationOf< StringType, std::basic_string >, Traits::IsSpecializationOf< StringType, std::basic_string_view >> * = nullptr> | |
constexpr auto | CppUtilities::operator% (const char *lhs, const StringType &rhs) -> decltype(std::make_tuple(lhs, &rhs)) |
Allows construction of string-tuples via %-operator, eg. More... | |
template<class StringType , Traits::EnableIfAny< Traits::IsSpecializationOf< StringType, std::basic_string >, Traits::IsSpecializationOf< StringType, std::basic_string_view >> * = nullptr> | |
constexpr auto | CppUtilities::operator% (const StringType &lhs, const char *rhs) -> decltype(std::make_tuple(&lhs, rhs)) |
Allows construction of string-tuples via %-operator, eg. More... | |
template<class StringType , Traits::EnableIfAny< Traits::IsSpecializationOf< StringType, std::basic_string >, Traits::IsSpecializationOf< StringType, std::basic_string_view >> * = nullptr> | |
constexpr auto | CppUtilities::operator% (const StringType &lhs, char rhs) -> decltype(std::make_tuple(&lhs, rhs)) |
Allows construction of string-tuples via %-operator, eg. More... | |
template<class StringType , Traits::EnableIfAny< Traits::IsSpecializationOf< StringType, std::basic_string >, Traits::IsSpecializationOf< StringType, std::basic_string_view >> * = nullptr> | |
constexpr auto | CppUtilities::operator% (char lhs, const StringType &rhs) -> decltype(std::make_tuple(lhs, &rhs)) |
Allows construction of string-tuples via %-operator, eg. More... | |
template<class Tuple , class StringType , Traits::EnableIf< Traits::IsSpecializationOf< Tuple, std::tuple >, Traits::Any< Traits::IsSpecializationOf< StringType, std::basic_string >, Traits::IsSpecializationOf< StringType, std::basic_string_view >>> * = nullptr> | |
std::string | CppUtilities::operator+ (const Tuple &lhs, const StringType &rhs) |
Allows construction of final string from previously constructed string-tuple and trailing string via +-operator. More... | |
template<class Tuple , Traits::EnableIf< Traits::IsSpecializationOf< Tuple, std::tuple >> * = nullptr> | |
std::string | CppUtilities::operator+ (const Tuple &lhs, const char *rhs) |
Allows construction of final string from previously constructed string-tuple and trailing string via +-operator. More... | |
template<class Tuple , typename IntegralType , Traits::EnableIf< Traits::IsSpecializationOf< Tuple, std::tuple >, std::is_integral< IntegralType >> * = nullptr> | |
std::string | CppUtilities::operator+ (const Tuple &lhs, IntegralType rhs) |
Allows construction of final string from previously constructed string-tuple and trailing char via +-operator. More... | |