|
Graphle 1.0.0
A C++20 header-only graph library
|
Classes | |
| class | always_false |
| struct | is_none |
| struct | is_placeholder |
| class | is_template |
| struct | none |
| struct | placeholder |
| struct | pointed_to_as_const |
| struct | pointed_to_as_const< T * > |
| struct | pointer_constness_match |
| struct | pointer_constness_match< A *, B * > |
| struct | pointer_constness_match< A *, const B * > |
| struct | pointer_constness_match< const A *, B * > |
| struct | pointer_constness_match< const A *, const B * > |
| struct | type_list |
Concepts | |
| concept | of_template |
| concept | invocable_r |
| concept | list_of_types |
| concept | type_wrapper |
| concept | value_wrapper |
| concept | value_wrapper_of |
Typedefs | |
| template<typename T > | |
| using | pointed_to_as_const_t = typename pointed_to_as_const< T >::type |
| template<typename T > | |
| using | type = std::type_identity< T > |
| template<auto V> | |
| using | value = std::integral_constant< decltype(V), V > |
| template<typename T > | |
| using | deduce_as_t = type< T > |
| template<typename T > | |
| using | deduce_as_lvalue_t = deduce_as_t< std::remove_reference_t< T > > |
Functions | |
| template<bool Condition, typename T , typename F > | |
| constexpr decltype(auto) | if_constexpr (T &&if_true, F &&if_false) |
Variables | |
| template<typename T > | |
| constexpr bool | always_false_v = always_false<T>::value |
| template<typename A , typename B > | |
| constexpr bool | pointer_constness_match_v = pointer_constness_match<A, B>::value |
| template<typename T > | |
| constexpr deduce_as_t< T > | deduce_as = {} |
| template<typename T > | |
| constexpr deduce_as_lvalue_t< T > | deduce_as_lvalue = {} |
| template<typename T > | |
| constexpr bool | is_none_v = is_none<T>::value |
| template<typename T > | |
| constexpr bool | is_placeholder_v = is_placeholder<T>::value |
Metaprogramming utilities.
| using graphle::meta::deduce_as_lvalue_t = typedef deduce_as_t<std::remove_reference_t<T> > |
| using graphle::meta::deduce_as_t = typedef type<T> |
| using graphle::meta::pointed_to_as_const_t = typedef typename pointed_to_as_const<T>::type |
Adds const to the pointed-to type of a pointer.
Definition at line 13 of file const_pointer.hpp.
| using graphle::meta::type = typedef std::type_identity<T> |
| using graphle::meta::value = typedef std::integral_constant<decltype(V), V> |
|
inlineconstexpr |
Wrapper around a constexpr-if statement to allow easily assigning different types to the same variable. E.g.:
Definition at line 15 of file if_constexpr.hpp.
|
inlineconstexpr |
Type trait that is false for any provided type T. Prevents early evaluation in static_assert, allowing the equivalent of static_assert(false) in a constexpr-if branch.
Definition at line 20 of file concepts.hpp.
|
inlineconstexpr |
|
inlineconstexpr |
Checks if a type is meta::none
|
inlineconstexpr |
Checks if a type is meta::placeholder
|
inlineconstexpr |
Checks if two pointers have the same constness of their pointed-to type.
Definition at line 28 of file const_pointer.hpp.