diff options
| author | Remko Tronçon <git@el-tramo.be> | 2010-02-11 12:14:00 (GMT) | 
|---|---|---|
| committer | Remko Tronçon <git@el-tramo.be> | 2010-02-11 12:14:00 (GMT) | 
| commit | 0efa7c32aaf21a29b42b5926cc116007056843be (patch) | |
| tree | 882f663a5dd0e65694bf6077b71086dd77fd7ff8 /3rdParty/Boost/boost/last_value.hpp | |
| parent | 1d20eabbc32274b491b4c2bedf73d19933d97bfd (diff) | |
| download | swift-0efa7c32aaf21a29b42b5926cc116007056843be.zip swift-0efa7c32aaf21a29b42b5926cc116007056843be.tar.bz2 | |
Moved some modules into separate git modules.
Diffstat (limited to '3rdParty/Boost/boost/last_value.hpp')
| m--------- | 3rdParty/Boost | 0 | ||||
| -rw-r--r-- | 3rdParty/Boost/boost/last_value.hpp | 54 | 
2 files changed, 0 insertions, 54 deletions
| diff --git a/3rdParty/Boost b/3rdParty/Boost new file mode 160000 +Subproject 3bbdbc8cf1996f23d9a366da8bac0f97be6ad79 diff --git a/3rdParty/Boost/boost/last_value.hpp b/3rdParty/Boost/boost/last_value.hpp deleted file mode 100644 index 183a739..0000000 --- a/3rdParty/Boost/boost/last_value.hpp +++ /dev/null @@ -1,54 +0,0 @@ -// last_value function object (documented as part of Boost.Signals) - -// Copyright Douglas Gregor 2001-2003. 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/signals - -#ifndef BOOST_LAST_VALUE_HPP -#define BOOST_LAST_VALUE_HPP - -#include <cassert> -#include <boost/config.hpp> - -namespace boost { -  template<typename T> -  struct last_value { -    typedef T result_type; - -    template<typename InputIterator> -    T operator()(InputIterator first, InputIterator last) const -    { -      assert(first != last); -      T value = *first++; -      while (first != last) -        value = *first++; -      return value; -    } -  }; - -  template<> -  struct last_value<void> { -#ifdef BOOST_NO_VOID_RETURNS -    struct unusable {}; - -  public: -    typedef unusable result_type; -#else -  public: -    typedef void result_type; -#endif // BOOST_NO_VOID_RETURNS - -    template<typename InputIterator> -    result_type -    operator()(InputIterator first, InputIterator last) const -    { -      while (first != last) -        *first++; -      return result_type(); -    } -  }; -} -#endif // BOOST_SIGNALS_LAST_VALUE_HPP | 
 Swift
 Swift