/usr/include/boost/move/detail
Edit: /usr/include/boost/move/detail/meta_utils_core.hpp (3364B)
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2015-2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/move for documentation.
//
//////////////////////////////////////////////////////////////////////////////
//! \file
#ifndef BOOST_MOVE_DETAIL_META_UTILS_CORE_HPP
#define BOOST_MOVE_DETAIL_META_UTILS_CORE_HPP
#ifndef BOOST_CONFIG_HPP
# include
#endif
#
#if defined(BOOST_HAS_PRAGMA_ONCE)
# pragma once
#endif
//Small meta-typetraits to support move
namespace boost {
namespace move_detail {
template
struct voider { typedef void type; };
//////////////////////////////////////
// if_c
//////////////////////////////////////
template
struct if_c
{
typedef T1 type;
};
template
struct if_c
{
typedef T2 type;
};
//////////////////////////////////////
// if_
//////////////////////////////////////
template
struct if_ : if_c<0 != T1::value, T2, T3>
{};
//////////////////////////////////////
// enable_if_c
//////////////////////////////////////
struct enable_if_nat{};
template
struct enable_if_c
{
typedef T type;
};
template
struct enable_if_c {};
//////////////////////////////////////
// enable_if
//////////////////////////////////////
template
struct enable_if : enable_if_c {};
//////////////////////////////////////
// disable_if_c
//////////////////////////////////////
template
struct disable_if_c
: enable_if_c
{};
//////////////////////////////////////
// disable_if
//////////////////////////////////////
template
struct disable_if : enable_if_c {};
//////////////////////////////////////
// integral_constant
//////////////////////////////////////
template
struct integral_constant
{
static const T value = v;
typedef T value_type;
typedef integral_constant type;
operator T() const { return value; }
T operator()() const { return value; }
};
typedef integral_constant true_type;
typedef integral_constant false_type;
//////////////////////////////////////
// is_same
//////////////////////////////////////
template
struct is_same
{
static const bool value = false;
};
template
struct is_same
{
static const bool value = true;
};
//////////////////////////////////////
// enable_if_same
//////////////////////////////////////
template
struct enable_if_same : enable_if, R> {};
//////////////////////////////////////
// disable_if_same
//////////////////////////////////////
template
struct disable_if_same : disable_if, R> {};
} //namespace move_detail {
} //namespace boost {
#endif //#ifndef BOOST_MOVE_DETAIL_META_UTILS_CORE_HPP