1 // Boost.TypeErasure library
3 // Copyright 2012 Steven Watanabe
5 // Distributed under the Boost Software License Version 1.0. (See
6 // accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
11 #ifndef BOOST_TYPE_ERASURE_IS_EMPTY_HPP_INCLUDED
12 #define BOOST_TYPE_ERASURE_IS_EMPTY_HPP_INCLUDED
14 #include <boost/type_erasure/detail/access.hpp>
17 namespace type_erasure {
19 /** Returns true for an empty @ref any. */
21 bool is_empty(const T& arg) {
22 return ::boost::type_erasure::detail::access::data(arg).data == 0;