Sha256: ad94565cac6adba277ec606d5a98e8386a78bd62300d01f0541b02f52cadc663

Contents?: true

Size: 951 Bytes

Versions: 65

Compression:

Stored size: 951 Bytes

Contents

#ifndef BOOST_ATOMIC_DETAIL_TYPE_CLASSIFICATION_HPP
#define BOOST_ATOMIC_DETAIL_TYPE_CLASSIFICATION_HPP

//  Copyright (c) 2011 Helge Bahmann
//
//  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)

#include <boost/atomic/detail/config.hpp>
#include <boost/type_traits/is_integral.hpp>

#ifdef BOOST_ATOMIC_HAS_PRAGMA_ONCE
#pragma once
#endif

namespace boost {
namespace atomics {
namespace detail {

template<typename T, bool IsInt = boost::is_integral<T>::value>
struct classify
{
    typedef void type;
};

template<typename T>
struct classify<T, true> {typedef int type;};

template<typename T>
struct classify<T*, false> {typedef void* type;};

template<typename T>
struct storage_size_of
{
    enum _
    {
        size = sizeof(T),
        value = (size == 3 ? 4 : (size == 5 || size == 6 || size == 7 ? 8 : size))
    };
};

}}}

#endif

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
passenger-5.0.24 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type-classification.hpp
passenger-5.0.23 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type-classification.hpp
passenger-5.0.22 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type-classification.hpp
passenger-4.0.60 ext/boost/atomic/detail/type-classification.hpp
passenger-5.0.21 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type-classification.hpp
passenger-5.0.20 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type-classification.hpp
passenger-5.0.19 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type-classification.hpp
passenger-5.0.18 ext/boost/atomic/detail/type-classification.hpp
passenger-5.0.17 ext/boost/atomic/detail/type-classification.hpp
passenger-5.0.16 ext/boost/atomic/detail/type-classification.hpp
passenger-5.0.15 ext/boost/atomic/detail/type-classification.hpp
passenger-5.0.14 ext/boost/atomic/detail/type-classification.hpp
passenger-5.0.13 ext/boost/atomic/detail/type-classification.hpp
passenger-5.0.11 ext/boost/atomic/detail/type-classification.hpp
passenger-5.0.10 ext/boost/atomic/detail/type-classification.hpp
passenger-5.0.9 ext/boost/atomic/detail/type-classification.hpp
passenger-5.0.8 ext/boost/atomic/detail/type-classification.hpp
passenger-5.0.7 ext/boost/atomic/detail/type-classification.hpp
passenger-5.0.6 ext/boost/atomic/detail/type-classification.hpp
passenger-5.0.5 ext/boost/atomic/detail/type-classification.hpp