xtd - Reference Guide
0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <convert_pointer.h>
Represents API to convert pointers.
Inherits xtd::static_object.
Static Public Member Functions | |
template<typename new_type_t , typename current_type_t > | |
static const new_type_t * | to_ptr (const current_type_t &value) |
Casts a type into another type. | |
template<typename new_type_t , typename current_type_t > | |
static const new_type_t * | to_ptr (const current_type_t *value) |
Casts a type into another type. | |
template<typename type_t > | |
static const type_t * | to_ptr (const type_t *value) |
Casts a type into another type. | |
template<typename new_type_t , typename current_type_t > | |
static new_type_t * | to_ptr (current_type_t &value) |
Casts a type into another type. | |
template<typename new_type_t , typename current_type_t > | |
static new_type_t * | to_ptr (current_type_t *value) |
Casts a type into another type. | |
template<typename type_t > | |
static type_t * | to_ptr (type_t *value) |
Casts a type into another type. | |
template<typename new_type_t , typename current_type_t > | |
static const new_type_t & | to_ref (const current_type_t &value) |
Casts a type into another type. | |
template<typename new_type_t , typename current_type_t > | |
static const new_type_t & | to_ref (const current_type_t *value) |
Casts a type into another type. | |
template<typename type_t > | |
static const type_t & | to_ref (const type_t &value) |
Casts a type into another type. | |
template<typename type_t > | |
static const type_t & | to_ref (const type_t *value) |
Casts a type into another type. | |
template<typename new_type_t , typename current_type_t > | |
static new_type_t & | to_ref (current_type_t &value) |
Casts a type into another type. | |
template<typename new_type_t , typename current_type_t > | |
static new_type_t & | to_ref (current_type_t *value) |
Casts a type into another type. | |
template<typename type_t > | |
static type_t & | to_ref (type_t &value) |
Casts a type into another type. | |
template<typename type_t > | |
static type_t & | to_ref (type_t *value) |
Casts a type into another type. | |
template<typename new_type_t , typename current_type_t > | |
static std::shared_ptr< new_type_t > | to_shared_ptr (const std::shared_ptr< current_type_t > &value) |
Casts a type into another type. | |
template<typename new_type_t , typename current_type_t > | |
static std::shared_ptr< new_type_t > | to_shared_ptr (std::shared_ptr< current_type_t > &&value) |
Casts a type into another type. | |
template<typename new_type_t , typename current_type_t > | |
static std::shared_ptr< new_type_t > | to_shared_ptr (std::shared_ptr< current_type_t > &value) |
Casts a type into another type. | |
template<typename new_type_t , typename current_type_t > | |
static std::unique_ptr< new_type_t > | to_unique_ptr (std::unique_ptr< current_type_t > &&value) |
Casts a type into another type. | |
template<typename new_type_t , typename current_type_t > | |
static std::unique_ptr< new_type_t > | to_unique_ptr (std::unique_ptr< current_type_t > &value) |
Casts a type into another type. | |