mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add sprout::swallow
This commit is contained in:
parent
582e50e4a7
commit
10e239f933
4 changed files with 166 additions and 48 deletions
23
sprout/utility/swallow.hpp
Normal file
23
sprout/utility/swallow.hpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2017 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_UTILITY_SWALLOW_HPP
|
||||
#define SPROUT_UTILITY_SWALLOW_HPP
|
||||
|
||||
#include <initializer_list>
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
// swallow
|
||||
//
|
||||
template<typename T>
|
||||
inline SPROUT_CXX14_CONSTEXPR void
|
||||
swallow(std::initializer_list<T>) SPROUT_NOEXCEPT {}
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_UTILITY_SWALLOW_HPP
|
Loading…
Add table
Add a link
Reference in a new issue