mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
最初
This commit is contained in:
commit
b3bb8121e8
362 changed files with 16820 additions and 0 deletions
24
sprout/detail/functional.hpp
Normal file
24
sprout/detail/functional.hpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
#ifndef SPROUT_DETAIL_FUNCTIONAL_HPP
|
||||
#define SPROUT_DETAIL_FUNCTIONAL_HPP
|
||||
|
||||
#include <functional>
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace detail {
|
||||
//
|
||||
// less
|
||||
//
|
||||
template<typename T>
|
||||
class less
|
||||
: public std::binary_function<T, T, bool>
|
||||
{
|
||||
public:
|
||||
SPROUT_CONSTEXPR bool operator()(T const& lhs, T const& rhs) const {
|
||||
return lhs < rhs;
|
||||
}
|
||||
};
|
||||
} // namespace detail
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_DETAIL_FUNCTIONAL_HPP
|
Loading…
Add table
Add a link
Reference in a new issue