|
template<size_t Cap, size_t Align = alignof(aligned_storage_impl::aligned_storage_helper<Cap>)> |
using | modm::aligned_storage_t = typename aligned_storage< Cap, Align >::type |
|
template<typename T > |
using | modm::get_callable_signature_t = typename get_callable_signature< T >::type |
|
|
template<typename T , std::size_t Size> |
auto | modm::any_cast (const inplace_any< Size > *any) noexcept-> std::add_pointer_t< std::add_const_t< std::remove_cvref_t< T >>> |
|
template<typename T , std::size_t Size> |
auto | modm::any_cast (inplace_any< Size > *any) noexcept-> std::add_pointer_t< std::remove_cvref_t< T >> |
|
template<typename T , std::size_t Size> |
auto | modm::any_cast (const inplace_any< Size > &any) noexcept-> std::add_const_t< std::remove_cvref_t< T >> & |
|
template<std::size_t Size> |
void | modm::swap (inplace_any< Size > &first, inplace_any< Size > &second) noexcept |
|
lbuild module: modm:utils
Deduce function signature type from callable
Identity for function types For functions objects the return type and parameters of operator() are deduced
e.g. deduces "void(int)" for "[&](int){}"
- Warning
- Not applicable to overload sets
template<typename T , std::size_t Size>
auto modm::any_cast |
( |
const inplace_any< Size > & |
any | ) |
-> std::add_const_t< std::remove_cvref_t< T >> & |
|
noexcept |
Type-safe access to the contained value
- Warning
- asserts if inplace any is empty or on type mismatch
- Parameters
-
- Template Parameters
-
T | type of the object to access |
- Returns
- reference to contained object
template<typename T , std::size_t Size>
auto modm::any_cast |
( |
const inplace_any< Size > * |
any | ) |
-> std::add_pointer_t< std::add_const_t< std::remove_cvref_t< T >>> |
|
noexcept |
Type-safe access to the contained value
- Parameters
-
- Template Parameters
-
T | type of the object to access |
- Returns
- pointer to contained object or nullptr if empty or on type mismatch
template<typename T , std::size_t Size>
auto modm::any_cast |
( |
inplace_any< Size > * |
any | ) |
-> std::add_pointer_t< std::remove_cvref_t< T >> |
|
noexcept |
Type-safe access to the contained value
- Parameters
-
- Template Parameters
-
T | type of the object to access |
- Returns
- pointer to contained object or nullptr if empty or on type mismatch
template<std::size_t Size>