Files

32 lines
886 B
C++

/*!
@file
Defines `Boost::hana::Struct`.
@copyright Louis Dionne 2013-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef ACTIV_BOOST_HANA_CONCEPT_STRUCT_HPP
#define ACTIV_BOOST_HANA_CONCEPT_STRUCT_HPP
#include <ActivBoost/hana/fwd/concept/struct.hpp>
#include <ActivBoost/hana/accessors.hpp>
#include <ActivBoost/hana/config.hpp>
#include <ActivBoost/hana/core/default.hpp>
#include <ActivBoost/hana/core/tag_of.hpp>
#include <ActivBoost/hana/detail/integral_constant.hpp>
namespace Boost { namespace hana {
template <typename S>
struct Struct
: hana::integral_constant<bool,
!is_default<accessors_impl<typename tag_of<S>::type>>::value
>
{ };
}} // end namespace Boost::hana
#endif // ACTIV_BOOST_!ACTIV_BOOST_HANA_CONCEPT_STRUCT_HPP