2013-08-08 09:54:33 +00:00
|
|
|
/*=============================================================================
|
2014-01-08 07:48:12 +00:00
|
|
|
Copyright (c) 2011-2014 Bolero MURAKAMI
|
2013-08-08 09:54:33 +00:00
|
|
|
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)
|
|
|
|
=============================================================================*/
|
2012-03-31 07:24:13 +00:00
|
|
|
#ifndef SPROUT_CONTAINER_EMPTY_HPP
|
|
|
|
#define SPROUT_CONTAINER_EMPTY_HPP
|
|
|
|
|
|
|
|
#include <sprout/config.hpp>
|
2012-04-04 08:48:02 +00:00
|
|
|
#include <sprout/container/begin.hpp>
|
|
|
|
#include <sprout/container/end.hpp>
|
2012-03-31 07:24:13 +00:00
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
//
|
|
|
|
// empty
|
|
|
|
//
|
|
|
|
template<typename Container>
|
2012-05-21 16:06:13 +00:00
|
|
|
inline SPROUT_CONSTEXPR bool
|
|
|
|
empty(Container const& cont) {
|
2012-04-04 08:48:02 +00:00
|
|
|
return sprout::begin(cont) == sprout::end(cont);
|
2012-03-31 07:24:13 +00:00
|
|
|
}
|
|
|
|
} // namespace sprout
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_CONTAINER_EMPTY_HPP
|