xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Static Public Member Functions | List of all members
xtd::convert_pointer Class Reference

#include <convert_pointer.h>

Definition

Represents API to convert pointers.

Namespace
xtd
Library
xtd.core
Remarks
This class cannot be inherited.

Static Public Member Functions

template<typename type_t >
static const type_t * to_ptr (const type_t *value)
 Casts a type into another type. More...
 
template<typename type_t >
static type_t * to_ptr (type_t *value)
 Casts a type into another type. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
template<typename type_t >
static const type_t & to_ref (const type_t &value)
 Casts a type into another type. More...
 
template<typename type_t >
static type_t & to_ref (type_t &value)
 Casts a type into another type. More...
 
template<typename type_t >
static const type_t & to_ref (const type_t *value)
 Casts a type into another type. More...
 
template<typename type_t >
static type_t & to_ref (type_t *value)
 Casts a type into another type. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 

The documentation for this class was generated from the following file: