mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
sprout/detail/if.hpp 削除
This commit is contained in:
parent
01e458886a
commit
240c2bee1d
8 changed files with 15 additions and 52 deletions
|
@ -1,30 +0,0 @@
|
|||
#ifndef SPROUT_DETAIL_IF_HPP
|
||||
#define SPROUT_DETAIL_IF_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace detail {
|
||||
//
|
||||
// if_c
|
||||
//
|
||||
template<bool C, typename T1, typename T2>
|
||||
struct if_c {
|
||||
typedef T1 type;
|
||||
};
|
||||
template<typename T1, typename T2>
|
||||
struct if_c<false, T1, T2> {
|
||||
typedef T2 type;
|
||||
};
|
||||
|
||||
//
|
||||
// if_
|
||||
//
|
||||
template<typename Cond, typename T1, typename T2>
|
||||
struct if_
|
||||
: public sprout::detail::if_c<Cond::value, T1, T2>
|
||||
{};
|
||||
} // namespace detail
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_DETAIL_IF_HPP
|
Loading…
Add table
Add a link
Reference in a new issue