Remove Activ libs and includes
This commit is contained in:
1 parent
28ed30c944
commit
4b718994be
10967 files changed
-2306716
No files matched your search
@@ -1,50 +0,0 @@
|
||||
// Copyright Neil Groves 2009. Use, modification and
|
||||
// distribution is subject to 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)
|
||||
//
|
||||
//
|
||||
// For more information, see http://www.boost.org/libs/range/
|
||||
//
|
||||
#ifndef ACTIV_BOOST_RANGE_ALGORITHM_COUNT_HPP_INCLUDED
|
||||
#define ACTIV_BOOST_RANGE_ALGORITHM_COUNT_HPP_INCLUDED
|
||||
|
||||
#include <ActivBoost/concept_check.hpp>
|
||||
#include <ActivBoost/range/begin.hpp>
|
||||
#include <ActivBoost/range/end.hpp>
|
||||
#include <ActivBoost/range/concepts.hpp>
|
||||
#include <ActivBoost/range/difference_type.hpp>
|
||||
#include <algorithm>
|
||||
|
||||
namespace Boost
|
||||
{
|
||||
namespace range
|
||||
{
|
||||
|
||||
/// \brief template function count
|
||||
///
|
||||
/// range-based version of the count std algorithm
|
||||
///
|
||||
/// \pre SinglePassRange is a model of the SinglePassRangeConcept
|
||||
template< class SinglePassRange, class Value >
|
||||
inline ACTIV_BOOST_DEDUCED_TYPENAME range_difference<SinglePassRange>::type
|
||||
count(SinglePassRange& rng, const Value& val)
|
||||
{
|
||||
ACTIV_BOOST_RANGE_CONCEPT_ASSERT(( SinglePassRangeConcept<SinglePassRange> ));
|
||||
return std::count(Boost::begin(rng), Boost::end(rng), val);
|
||||
}
|
||||
|
||||
/// \overload
|
||||
template< class SinglePassRange, class Value >
|
||||
inline ACTIV_BOOST_DEDUCED_TYPENAME range_difference<SinglePassRange const>::type
|
||||
count(const SinglePassRange& rng, const Value& val)
|
||||
{
|
||||
ACTIV_BOOST_RANGE_CONCEPT_ASSERT(( SinglePassRangeConcept<const SinglePassRange> ));
|
||||
return std::count(Boost::begin(rng), Boost::end(rng), val);
|
||||
}
|
||||
|
||||
} // namespace range
|
||||
using range::count;
|
||||
} // namespace Boost
|
||||
|
||||
#endif // include guard
|
||||
Reference in new issue
Block a user