#include <initializer_list>
#include <new>
#include <typeinfo>
#include <utility>
Go to the source code of this file.
|
namespace | ki |
| An implementation of std::any_cast, which uses type_info::hash_code to check validity of cast types.
|
|
|
void | ki::swap (any &x, any &y) noexcept |
| Exchange the states of two any objects.
|
|
template<typename T , typename... Args> |
std::enable_if_t< std::is_constructible_v< any, std::in_place_type_t< T >, Args... >, any > | ki::make_any (Args &&... args) |
| Create a any holding a T constructed from args...
|
|
template<typename T , typename U , typename... Args> |
std::enable_if_t< std::is_constructible_v< any, std::in_place_type_t< T >, std::initializer_list< U > &, Args... >, any > | ki::make_any (std::initializer_list< U > il, Args &&... args) |
| Create an any holding a T constructed from il and args... .
|
|
template<typename ValueType > |
ValueType | ki::any_cast (const any &any) |
| Access the contained object.
|
|
|
template<typename ValueType > |
ValueType | ki::any_cast (any &any) |
| Access the contained object.
|
|
template<typename ValueType > |
ValueType | ki::any_cast (any &&any) |
|
|
template<typename ValueType > |
const ValueType * | ki::any_cast (const any *any) noexcept |
| Access the contained object.
|
|
template<typename ValueType > |
ValueType * | ki::any_cast (any *any) noexcept |
|