Compute Library
 21.11
Cast.h File Reference

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2021 Arm Limited.
 
 arm_compute::utils
 
 arm_compute::utils::cast
 

Functions

template<typename Target , typename Source >
Target polymorphic_cast (Source *v)
 Polymorphic cast between two types. More...
 
template<typename Target , typename Source >
Target polymorphic_downcast (Source *v)
 Polymorphic down cast between two types. More...
 
template<typename Target , typename Source , typename Deleter >
std::unique_ptr< Target, Deleter > polymorphic_cast_unique_ptr (std::unique_ptr< Source, Deleter > &&v)
 Polymorphic cast between two unique pointer types. More...
 
template<typename Target , typename Source , typename Deleter >
std::unique_ptr< Target, Deleter > polymorphic_downcast_unique_ptr (std::unique_ptr< Source, Deleter > &&v)
 Polymorphic down cast between two unique pointer types. More...