Leosac  0.8.0
Open Source Access Control
AssertCast.hpp File Reference
#include "tools/log.hpp"
#include <memory>
+ Include dependency graph for AssertCast.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Leosac::is_shared_ptr< T >
 
struct  Leosac::is_shared_ptr< std::shared_ptr< T > >
 
struct  Leosac::is_shared_ptr< const std::shared_ptr< T > >
 
struct  Leosac::is_shared_ptr< std::shared_ptr< T > & >
 
struct  Leosac::is_shared_ptr< const std::shared_ptr< T > & >
 

Namespaces

 Leosac
 This is the header file for a generated source file, GitSHA1.cpp.
 

Functions

template<typename Out , typename In >
std::enable_if_t< is_shared_ptr_v< Out >, Out > Leosac::assert_cast (const std::shared_ptr< In > &in)
 
template<typename Out , typename In >
std::enable_if_t<!is_shared_ptr_v< Out > &&!std::is_pointer< Out >::value, Out && > Leosac::assert_cast (In &&in)
 
template<typename Out , typename In >
std::enable_if_t< std::is_pointer< Out >::value &&std::is_pointer< In >::value, Out > Leosac::assert_cast (In &&in)
 

Variables

template<typename T >
constexpr bool Leosac::is_shared_ptr_v = is_shared_ptr<T>::value