Sprout/sprout/tuple/tuple/ignore.hpp
2014-01-08 16:48:12 +09:00

35 lines
984 B
C++

/*=============================================================================
Copyright (c) 2011-2014 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
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)
=============================================================================*/
#ifndef SPROUT_TUPLE_TUPLE_IGNORE_HPP
#define SPROUT_TUPLE_TUPLE_IGNORE_HPP
#include <sprout/config.hpp>
namespace sprout {
namespace tuples {
//
// ignore_t
//
struct ignore_t {
public:
template<typename T>
SPROUT_CXX14_CONSTEXPR ignore_t const& operator=(T const&) const {
return *this;
}
};
//
// ignore
//
SPROUT_STATIC_CONSTEXPR ignore_t ignore = {};
} // namespace tuples
using sprout::tuples::ignore_t;
using sprout::tuples::ignore;
} // namespace sprout
#endif // #ifndef SPROUT_TUPLE_TUPLE_IGNORE_HPP