Files

41 lines
1.0 KiB
C++

// Copyright Antony Polukhin, 2021.
//
// 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)
// Contributed by Ruslan Arutyunyan
#ifndef ACTIV_BOOST_ANY_ANYS_FWD_HPP
#define ACTIV_BOOST_ANY_ANYS_FWD_HPP
#include <ActivBoost/config.hpp>
#ifdef ACTIV_BOOST_HAS_PRAGMA_ONCE
# pragma once
#endif
#include <ActivBoost/type_traits/alignment_of.hpp>
namespace Boost {
class any;
namespace anys {
template<std::size_t OptimizeForSize = sizeof(void*), std::size_t OptimizeForAlignment = Boost::alignment_of<void*>::value>
class basic_any;
namespace detail {
template <class T>
struct is_basic_any: public false_type {};
template<std::size_t OptimizeForSize, std::size_t OptimizeForAlignment>
struct is_basic_any<Boost::anys::basic_any<OptimizeForSize, OptimizeForAlignment> > : public true_type {};
} // namespace detail
} // namespace anys
} // namespace Boost
#endif // #ifndef ACTIV_BOOST_ANY_ANYS_FWD_HPP