mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
sprout/weed/parser/numeric/int.hpp 追加
This commit is contained in:
parent
ad94c0b247
commit
005f8a9a87
5 changed files with 329 additions and 23 deletions
29
sprout/weed/parser/numeric/int.hpp
Normal file
29
sprout/weed/parser/numeric/int.hpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
#ifndef SPROUT_WEED_PARSER_NUMERIC_INT_HPP
|
||||
#define SPROUT_WEED_PARSER_NUMERIC_INT_HPP
|
||||
|
||||
#include <cstdint>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/integer/integer_digits.hpp>
|
||||
#include <sprout/weed/parser/numeric/int_p.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace weed {
|
||||
//
|
||||
// int_
|
||||
//
|
||||
SPROUT_STATIC_CONSTEXPR auto int_ = sprout::weed::int_p<std::intmax_t, 10, 1, -1>();
|
||||
|
||||
//
|
||||
// int8
|
||||
// int16
|
||||
// int32
|
||||
// int64
|
||||
//
|
||||
SPROUT_STATIC_CONSTEXPR auto int8 = sprout::weed::int_p<std::int8_t, 10>();
|
||||
SPROUT_STATIC_CONSTEXPR auto int16 = sprout::weed::int_p<std::int16_t, 10>();
|
||||
SPROUT_STATIC_CONSTEXPR auto int32 = sprout::weed::int_p<std::int32_t, 10>();
|
||||
SPROUT_STATIC_CONSTEXPR auto int64 = sprout::weed::int_p<std::int64_t, 10>();
|
||||
} // namespace weed
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_WEED_PARSER_NUMERIC_INT_HPP
|
Loading…
Add table
Add a link
Reference in a new issue