27 #ifndef NANO_FUNCTIONS_HPP
28 #define NANO_FUNCTIONS_HPP
40 template <
typename Type1,
typename Type2>
43 static constexpr
bool result = Type1::value == Type2::value ?
true :
false;
58 template <
typename Type1,
typename Type2>
61 static constexpr
bool result = Type2::value != -1 ?
true :
false;
69 template <
typename Type>
72 static constexpr
bool result = Type::value == -1 ?
true :
false;
82 template <
typename Type1,
typename Type2>
85 static constexpr
bool result = ( (Type1::value != -1) && (Type2::value != -1) ) ?
true :
false;
94 template <
typename Container,
typename... Types>
97 template <
template <
typename...>
class Container,
typename... Types>
100 static constexpr
int result =
sizeof...(Types);
109 template <
typename Arg1,
typename Arg2>
115 static constexpr
typename Arg1::type result = Arg1::value * Arg2::value;
124 template <
typename Arg1,
typename Arg2>
130 static constexpr
typename Arg1::type result = Arg1::value + Arg2::value;
135 #endif // NANO_FUNCTIONS_HPP
static constexpr bool result
Definition: functions.hpp:43
Function to determine if and element is not found (has a value of -1)
Definition: functions.hpp:70
Multiplies two nano numeric types.
Definition: functions.hpp:110
Checks if both types are found (have values != -1), in which case result is true, otherwise result is...
Definition: functions.hpp:83
Header file for the eval metaclass to evaluate meta functions and classes.
static constexpr bool result
Definition: functions.hpp:72
static constexpr bool result
Definition: functions.hpp:85
Definition: containers.hpp:34
Check if two types (which have value components) have the same value.
Definition: functions.hpp:41
Gets the number of types in a container.
Definition: functions.hpp:95
static constexpr bool result
Definition: functions.hpp:61
Wrapper around size_t for static size_t types used by metaclass and metafunctions in nano...
Definition: numeric_types.hpp:40
Addss two nano numeric types.
Definition: functions.hpp:125
Ths function is supposed to be used with the find functions on lists when searching through the list ...
Definition: functions.hpp:59