1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

add valarray

This commit is contained in:
bolero-MURAKAMI 2016-04-03 13:12:14 +09:00
parent 5ff6029d51
commit 1b8c051008
27 changed files with 3330 additions and 5 deletions

View file

@ -11,5 +11,6 @@
#include <sprout/config.hpp>
#include <sprout/functional/unary_function.hpp>
#include <sprout/functional/binary_function.hpp>
#include <sprout/functional/transparent.hpp>
#endif // #ifndef SPROUT_FUNCTIONAL_BASE_HPP

View file

@ -26,7 +26,7 @@ namespace sprout {
template<typename T, typename U>
SPROUT_CONSTEXPR decltype(std::declval<T>() >> std::declval<U>())
operator()(T&& x, U&& y)
const SPROUT_NOEXCEPT_IF_EXPR(std::declval<T>() << std::declval<U>())
const SPROUT_NOEXCEPT_IF_EXPR(std::declval<T>() >> std::declval<U>())
{
return SPROUT_FORWARD(T, x) >> SPROUT_FORWARD(U, y);
}

View file

@ -0,0 +1,24 @@
/*=============================================================================
Copyright (c) 2011-2016 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_FUNCTIONAL_TRANSPARENT_HPP
#define SPROUT_FUNCTIONAL_TRANSPARENT_HPP
#include <sprout/config.hpp>
namespace sprout {
//
// transparent
//
template<typename T = void>
struct transparent {
public:
typedef T is_transparent;
};
} // namespace sprout
#endif // #ifndef SPROUT_FUNCTIONAL_TRANSPARENT_HPP