mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add ptr_fun, mem_fun, mem_fun_ref
This commit is contained in:
parent
4a8e938887
commit
f86d17d0d4
46 changed files with 322 additions and 76 deletions
|
@ -35,7 +35,7 @@ namespace sprout {
|
|||
T t_;
|
||||
public:
|
||||
lit_char_p() = default;
|
||||
SPROUT_CONSTEXPR explicit lit_char_p(T const& t)
|
||||
explicit SPROUT_CONSTEXPR lit_char_p(T const& t)
|
||||
: t_(t)
|
||||
{}
|
||||
template<typename Context, typename Iterator>
|
||||
|
@ -94,7 +94,7 @@ namespace sprout {
|
|||
T t_;
|
||||
public:
|
||||
char_p() = default;
|
||||
SPROUT_CONSTEXPR explicit char_p(T const& t)
|
||||
explicit SPROUT_CONSTEXPR char_p(T const& t)
|
||||
: t_(t)
|
||||
{}
|
||||
template<typename Context, typename Iterator>
|
||||
|
|
|
@ -56,7 +56,7 @@ namespace sprout {
|
|||
}
|
||||
public:
|
||||
as_array_p() = default;
|
||||
SPROUT_CONSTEXPR explicit as_array_p(
|
||||
explicit SPROUT_CONSTEXPR as_array_p(
|
||||
Parser const& p
|
||||
)
|
||||
: expr_(sprout::weed::make_terminal_or_expr(p))
|
||||
|
|
|
@ -56,7 +56,7 @@ namespace sprout {
|
|||
}
|
||||
public:
|
||||
as_tuple_p() = default;
|
||||
SPROUT_CONSTEXPR explicit as_tuple_p(
|
||||
explicit SPROUT_CONSTEXPR as_tuple_p(
|
||||
Parser const& p
|
||||
)
|
||||
: expr_(sprout::weed::make_terminal_or_expr(p))
|
||||
|
|
|
@ -51,7 +51,7 @@ namespace sprout {
|
|||
}
|
||||
public:
|
||||
omit_p() = default;
|
||||
SPROUT_CONSTEXPR explicit omit_p(
|
||||
explicit SPROUT_CONSTEXPR omit_p(
|
||||
Parser const& p
|
||||
)
|
||||
: expr_(sprout::weed::make_terminal_or_expr(p))
|
||||
|
|
|
@ -156,7 +156,7 @@ namespace sprout {
|
|||
std::size_t count_;
|
||||
public:
|
||||
repeat_p() = default;
|
||||
SPROUT_CONSTEXPR explicit repeat_p(Parser const& p, std::size_t count = -1)
|
||||
explicit SPROUT_CONSTEXPR repeat_p(Parser const& p, std::size_t count = -1)
|
||||
: expr_(sprout::weed::make_terminal_or_expr(p))
|
||||
, count_(count)
|
||||
{}
|
||||
|
@ -178,7 +178,7 @@ namespace sprout {
|
|||
private:
|
||||
std::size_t count_;
|
||||
public:
|
||||
SPROUT_CONSTEXPR explicit repeat_g(std::size_t count)
|
||||
explicit SPROUT_CONSTEXPR repeat_g(std::size_t count)
|
||||
: count_(count)
|
||||
{}
|
||||
template<typename Parser>
|
||||
|
|
|
@ -41,7 +41,7 @@ namespace sprout {
|
|||
sprout::weed::limited::category limited_category_;
|
||||
public:
|
||||
limit_p() = default;
|
||||
SPROUT_CONSTEXPR explicit limit_p(
|
||||
explicit SPROUT_CONSTEXPR limit_p(
|
||||
Parser const& p,
|
||||
sprout::weed::limited::category limited_category = sprout::weed::limited::discard
|
||||
)
|
||||
|
|
|
@ -41,7 +41,7 @@ namespace sprout {
|
|||
T t_;
|
||||
public:
|
||||
lit_str_p() = default;
|
||||
SPROUT_CONSTEXPR explicit lit_str_p(T const& t)
|
||||
explicit SPROUT_CONSTEXPR lit_str_p(T const& t)
|
||||
: t_(t)
|
||||
{}
|
||||
template<typename Context, typename Iterator>
|
||||
|
@ -116,7 +116,7 @@ namespace sprout {
|
|||
T t_;
|
||||
public:
|
||||
str_p() = default;
|
||||
SPROUT_CONSTEXPR explicit str_p(T const& t)
|
||||
explicit SPROUT_CONSTEXPR str_p(T const& t)
|
||||
: t_(t)
|
||||
{}
|
||||
template<typename Context, typename Iterator>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue