LibreOffice Module o3tl (master) 1
Namespaces | Functions
unsafe_downcast.hxx File Reference
#include <cassert>
#include <type_traits>
Include dependency graph for unsafe_downcast.hxx:

Go to the source code of this file.

Namespaces

namespace  o3tl
 

Functions

template<typename DerivedPtr , typename BasePtr >
std::enable_if_t<(std::is_pointer_v< DerivedPtr > &&std::is_pointer_v< BasePtr > &&std::is_base_of_v< std::remove_pointer_t< BasePtr >, std::remove_pointer_t< DerivedPtr > >), DerivedPtr > o3tl::unsafe_downcast (BasePtr p)