Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/proto/functional/range/empty.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 /////////////////////////////////////////////////////////////////////////////// |
Chris@16 | 2 /// \file empty.hpp |
Chris@16 | 3 /// Proto callables for boost::empty() |
Chris@16 | 4 // |
Chris@16 | 5 // Copyright 2012 Eric Niebler. Distributed under the Boost |
Chris@16 | 6 // Software License, Version 1.0. (See accompanying file |
Chris@16 | 7 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 8 |
Chris@16 | 9 #ifndef BOOST_PROTO_FUNCTIONAL_RANGE_EMPTY_HPP_EAN_27_08_2012 |
Chris@16 | 10 #define BOOST_PROTO_FUNCTIONAL_RANGE_EMPTY_HPP_EAN_27_08_2012 |
Chris@16 | 11 |
Chris@16 | 12 #include <boost/range/empty.hpp> |
Chris@16 | 13 #include <boost/proto/proto_fwd.hpp> |
Chris@16 | 14 |
Chris@16 | 15 namespace boost { namespace proto { namespace functional |
Chris@16 | 16 { |
Chris@16 | 17 |
Chris@16 | 18 // A PolymorphicFunctionObject that wraps boost::empty() |
Chris@16 | 19 struct empty |
Chris@16 | 20 { |
Chris@16 | 21 BOOST_PROTO_CALLABLE() |
Chris@16 | 22 |
Chris@16 | 23 typedef bool result_type; |
Chris@16 | 24 |
Chris@16 | 25 template<typename Rng> |
Chris@16 | 26 bool operator()(Rng const &rng) const |
Chris@16 | 27 { |
Chris@16 | 28 return boost::empty(rng); |
Chris@16 | 29 } |
Chris@16 | 30 }; |
Chris@16 | 31 |
Chris@16 | 32 }}} |
Chris@16 | 33 |
Chris@16 | 34 #endif |