VCCC  2024.05
VisualCamp Common C++ library
addressof.hpp File Reference
#include <memory>
#include <type_traits>
#include "vccc/__config.h"

Go to the source code of this file.

Namespaces

 vccc
 

Macros

#define VCCC_ADDRESSOF_CONSTEXPR
 

Functions

template<typename T >
std::enable_if_t< std::is_object< T >::value, T * > addressof (T &t) noexcept
 
template<typename T >
constexpr std::enable_if_t< std::is_object< T >::value==false, T * > addressof (T &t) noexcept
 
template<typename T >
constexpr const T * addressof (T &&)=delete
 

Macro Definition Documentation

◆ VCCC_ADDRESSOF_CONSTEXPR

#define VCCC_ADDRESSOF_CONSTEXPR