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,95 +0,0 @@
|
||||
// (C) Copyright Jeremy Siek 2001.
|
||||
// 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)
|
||||
|
||||
// Revision History:
|
||||
|
||||
// 27 Feb 2001 Jeremy Siek
|
||||
// Initial checkin.
|
||||
|
||||
#ifndef ACTIV_BOOST_ITERATOR_FUNCTION_OUTPUT_ITERATOR_HPP
|
||||
#define ACTIV_BOOST_ITERATOR_FUNCTION_OUTPUT_ITERATOR_HPP
|
||||
|
||||
#include <iterator>
|
||||
#include <ActivBoost/config.hpp>
|
||||
#include <ActivBoost/core/enable_if.hpp>
|
||||
#include <ActivBoost/type_traits/is_same.hpp>
|
||||
#include <ActivBoost/type_traits/remove_cv.hpp>
|
||||
#ifndef ACTIV_BOOST_NO_CXX11_RVALUE_REFERENCES
|
||||
#include <ActivBoost/type_traits/remove_reference.hpp>
|
||||
#endif
|
||||
|
||||
namespace Boost {
|
||||
namespace iterators {
|
||||
|
||||
template <class UnaryFunction>
|
||||
class function_output_iterator {
|
||||
private:
|
||||
typedef function_output_iterator self;
|
||||
|
||||
class output_proxy {
|
||||
public:
|
||||
explicit output_proxy(UnaryFunction& f) ACTIV_BOOST_NOEXCEPT : m_f(f) { }
|
||||
|
||||
#ifdef ACTIV_BOOST_NO_CXX11_RVALUE_REFERENCES
|
||||
template <class T>
|
||||
typename Boost::disable_if_c<
|
||||
Boost::is_same< typename Boost::remove_cv< T >::type, output_proxy >::value,
|
||||
output_proxy&
|
||||
>::type operator=(const T& value) {
|
||||
m_f(value);
|
||||
return *this;
|
||||
}
|
||||
#else
|
||||
template <class T>
|
||||
typename Boost::disable_if_c<
|
||||
Boost::is_same< typename Boost::remove_cv< typename Boost::remove_reference< T >::type >::type, output_proxy >::value,
|
||||
output_proxy&
|
||||
>::type operator=(T&& value) {
|
||||
m_f(static_cast< T&& >(value));
|
||||
return *this;
|
||||
}
|
||||
#endif
|
||||
|
||||
ACTIV_BOOST_DEFAULTED_FUNCTION(output_proxy(output_proxy const& that), ACTIV_BOOST_NOEXCEPT : m_f(that.m_f) {})
|
||||
ACTIV_BOOST_DELETED_FUNCTION(output_proxy& operator=(output_proxy const&))
|
||||
|
||||
private:
|
||||
UnaryFunction& m_f;
|
||||
};
|
||||
|
||||
public:
|
||||
typedef std::output_iterator_tag iterator_category;
|
||||
typedef void value_type;
|
||||
typedef void difference_type;
|
||||
typedef void pointer;
|
||||
typedef void reference;
|
||||
|
||||
explicit function_output_iterator() {}
|
||||
|
||||
explicit function_output_iterator(const UnaryFunction& f)
|
||||
: m_f(f) {}
|
||||
|
||||
output_proxy operator*() { return output_proxy(m_f); }
|
||||
self& operator++() { return *this; }
|
||||
self& operator++(int) { return *this; }
|
||||
|
||||
private:
|
||||
UnaryFunction m_f;
|
||||
};
|
||||
|
||||
template <class UnaryFunction>
|
||||
inline function_output_iterator<UnaryFunction>
|
||||
make_function_output_iterator(const UnaryFunction& f = UnaryFunction()) {
|
||||
return function_output_iterator<UnaryFunction>(f);
|
||||
}
|
||||
|
||||
} // namespace iterators
|
||||
|
||||
using iterators::function_output_iterator;
|
||||
using iterators::make_function_output_iterator;
|
||||
|
||||
} // namespace Boost
|
||||
|
||||
#endif // ACTIV_BOOST_ITERATOR_FUNCTION_OUTPUT_ITERATOR_HPP
|
||||
Reference in new issue
Block a user