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.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
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.

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.
 

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