/*============================================================================= Copyright (c) 2011-2014 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_WEED_DETAIL_NDIGITS_HPP #define SPROUT_WEED_DETAIL_NDIGITS_HPP #include #include #include #include #include #include #include #include namespace sprout { namespace weed { namespace detail { template inline SPROUT_CONSTEXPR sprout::tuples::tuple from_ndigit( Elem c, typename std::enable_if::type* = 0 ) { return sprout::weed::detail::from_digit(c); } template inline SPROUT_CONSTEXPR sprout::tuples::tuple from_ndigit( Elem c, typename std::enable_if::type* = 0 ) { return sprout::weed::detail::from_bdigit(c); } template inline SPROUT_CONSTEXPR sprout::tuples::tuple from_ndigit( Elem c, typename std::enable_if::type* = 0 ) { return sprout::weed::detail::from_odigit(c); } template inline SPROUT_CONSTEXPR sprout::tuples::tuple from_ndigit( Elem c, typename std::enable_if::type* = 0 ) { return sprout::weed::detail::from_xdigit(c); } } // namespace detail } // namespace weed } // namespace sprout #endif // #ifndef SPROUT_WEED_DETAIL_NDIGITS_HPP