mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
porting cel/range/algoritm.hpp
This commit is contained in:
parent
cf593ffeff
commit
ba6482d1ec
51 changed files with 1908 additions and 116 deletions
|
@ -9,11 +9,11 @@ namespace sprout {
|
|||
// forward
|
||||
//
|
||||
template<typename T>
|
||||
SPROUT_CONSTEXPR T&& forward(typename std::remove_reference<T>::type& t) SPROUT_NOEXCEPT {
|
||||
inline SPROUT_CONSTEXPR T&& forward(typename std::remove_reference<T>::type& t) SPROUT_NOEXCEPT {
|
||||
return static_cast<T&&>(t);
|
||||
}
|
||||
template<typename T>
|
||||
SPROUT_CONSTEXPR T&& forward(typename std::remove_reference<T>::type&& t) SPROUT_NOEXCEPT = delete;
|
||||
inline SPROUT_CONSTEXPR T&& forward(typename std::remove_reference<T>::type&& t) SPROUT_NOEXCEPT = delete;
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_UTILITY_FORWARD_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue