xtd 0.2.0
Loading...
Searching...
No Matches
xtd::convert_pointer Class Reference
Inheritance diagram for xtd::convert_pointer:
xtd::static_object

Definition

Represents API to convert pointers.

Header
#include <xtd/convert_pointer>
Namespace
xtd
Library
xtd.core
Remarks
This class cannot be inherited.

Public Static Methods

template<typename type_t >
static const type_t * to_ptr (const 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 type_t >
static const type_t * to_ptr (const 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_ptr (const 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 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 new_type_t * to_ptr (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 type_t & to_ref (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 type_t & to_ref (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 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 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 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 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.
 
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.
 

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