mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add bind, mem_fn, ref, and others.
This commit is contained in:
parent
30dbbc44fc
commit
aa4fc785b0
29 changed files with 1564 additions and 18 deletions
21
sprout/functional/logical_or.hpp
Normal file
21
sprout/functional/logical_or.hpp
Normal file
|
@ -0,0 +1,21 @@
|
|||
#ifndef SPROUT_FUNCTIONAL_LOGICAL_OR_HPP
|
||||
#define SPROUT_FUNCTIONAL_LOGICAL_OR_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
namespace sprout {
|
||||
// 20.8.6 logical operations
|
||||
template<typename T>
|
||||
struct logical_or {
|
||||
public:
|
||||
typedef T first_argument_type;
|
||||
typedef T second_argument_type;
|
||||
typedef bool result_type;
|
||||
public:
|
||||
SPROUT_CONSTEXPR bool operator()(T const& x, T const& y) const {
|
||||
return x || y;
|
||||
}
|
||||
};
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_FUNCTIONAL_LOGICAL_OR_HPP
|
Loading…
Add table
Add a link
Reference in a new issue