diff options
Diffstat (limited to 'deps/tao_tuple/28626e99/include/tao/seq/plus.hpp')
-rw-r--r-- | deps/tao_tuple/28626e99/include/tao/seq/plus.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/deps/tao_tuple/28626e99/include/tao/seq/plus.hpp b/deps/tao_tuple/28626e99/include/tao/seq/plus.hpp new file mode 100644 index 0000000000..18ac4c435e --- /dev/null +++ b/deps/tao_tuple/28626e99/include/tao/seq/plus.hpp @@ -0,0 +1,29 @@ +// The Art of C++ / Sequences +// Copyright (c) 2015 Daniel Frey + +#ifndef TAOCPP_SEQUENCES_INCLUDE_PLUS_HPP +#define TAOCPP_SEQUENCES_INCLUDE_PLUS_HPP + +#include <type_traits> + +#include "zip.hpp" + +namespace tao +{ + namespace seq + { + namespace impl + { + template< typename T, T A, T B > + using plus = std::integral_constant< T, A + B >; + } + + template< typename A, typename B > + using plus = zip< impl::plus, A, B >; + + template< typename A, typename B > + using plus_t = typename plus< A, B >::type; + } +} + +#endif // TAOCPP_SEQUENCES_INCLUDE_PLUS_HPP |