Support Class Library
A set of tools providing classes and utility
|
Utility classes (and rare functions) More...
Namespaces | |
details | |
Implementation details for the utility classes. | |
placeholder | |
Namespace holding the constexpr global variable "_". | |
Classes | |
class | Any |
Class that can hold any value type (and change value type mid lifetime) More... | |
class | Either |
Alternative type that stores one or the other. More... | |
struct | None |
An empty class serving as the type of an empty Optional<T> More... | |
class | Optional |
A class that allows the use of optional types (might be there) More... | |
struct | Placeholder |
Class representing parameter/return argument placholders. More... | |
class | RawStorage |
Class that handles raw storage (and manual memory management) for a variable type. More... | |
class | Result |
struct | ToString |
class | ToString< None > |
A specialization of ToString for None type. More... | |
struct | ToString< scl::http::StatusCode > |
struct | ToString< scl::http::Version, void > |
Typedefs | |
template<class F , class... Args> | |
using | invoke_result_t = decltype(invoke(std::declval< F >(), std::declval< Args >()...)) |
Functions | |
template<class R , class... Args> | |
R | invoke (scl::tools::meta ::fn_sig_type< R, Args... > fn, Args &&... args) |
template<class R , class Class , class... Args> | |
R | invoke (scl::tools::meta ::memfn_type< R, Class, Args... > fn, Class &obj, Args &&... args) |
template<class R , class Class , class... Args> | |
R | invoke (scl::tools::meta ::const_memfn_type< R, Class, Args... > fn, const Class &obj, Args &&... args) |
template<class R , class Class , class... Args> | |
R | invoke (scl::tools::meta ::memfn_type< R, Class, Args... > fn, Class &&obj, Args &&... args) |
template<class R , class Class , class... Args> | |
R | invoke (scl::tools::meta ::memfn_type< R, Class, Args... > fn, Class *const obj, Args &&... args) |
template<class R , class Class , class... Args> | |
R | invoke (scl::tools::meta ::const_memfn_type< R, Class, Args... > fn, const Class *const obj, Args &&... args) |
template<class R , class Class > | |
R | invoke (scl::tools::meta ::mem_ptr_type< R, Class > fn, const Class &obj) |
template<class R , class Class > | |
R | invoke (scl::tools::meta ::mem_ptr_type< R, Class > fn, const Class *obj) |
template<class F , class... Args> | |
auto | invoke (F &&fn, Args &&... args) -> decltype(std::forward< F >(fn)(std::forward< Args >(args)...)) |
template<class T > | |
Result< T, std::exception_ptr > | wrapInResult (std::function< T()> f) |
template<class T > | |
std::string | toString (const T &obj) |
Free function that allows string conversion. More... | |
Variables | |
constexpr None | none = None{} |
A constant global variable of type None. More... | |
Utility classes (and rare functions)
using scl::utils::invoke_result_t = typedef decltype(invoke(std::declval<F>(), std::declval<Args>()...)) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::string scl::utils::toString | ( | const T & | obj | ) |
Free function that allows string conversion.
T | the type of object to convert to string |
Definition at line 57 of file toString.h.
Result<T, std::exception_ptr> scl::utils::wrapInResult | ( | std::function< T()> | f | ) |
scl::utils::none = None{} |
A constant global variable of type None.
Definition at line 41 of file Optional.h.