mirror of
https://github.com/boostorg/utility.git
synced 2025-08-03 14:54:31 +02:00
name changes
[SVN r1892]
This commit is contained in:
@@ -271,7 +271,7 @@ through the following class template::
|
|||||||
, class HasDefaultValue // mpl::true_ or mpl::false_
|
, class HasDefaultValue // mpl::true_ or mpl::false_
|
||||||
, class Predicate
|
, class Predicate
|
||||||
>
|
>
|
||||||
struct arg;
|
struct named_param;
|
||||||
|
|
||||||
The key parameter, ``Predicate`` shall be a unary MPL lambda
|
The key parameter, ``Predicate`` shall be a unary MPL lambda
|
||||||
expression or `Metafunction Class`_ that, when applied to the
|
expression or `Metafunction Class`_ that, when applied to the
|
||||||
@@ -288,13 +288,13 @@ meets the function's requirements for that parameter position.
|
|||||||
For example, let's say we want to restrict our ``foo()`` so that
|
For example, let's say we want to restrict our ``foo()`` so that
|
||||||
the ``name`` parameter must be convertible to ``const char*``.
|
the ``name`` parameter must be convertible to ``const char*``.
|
||||||
We'll replace our use of the ``name_t`` tag with a specialization
|
We'll replace our use of the ``name_t`` tag with a specialization
|
||||||
of ``boost::arg``:
|
of ``boost::named_param``:
|
||||||
|
|
||||||
.. parsed-literal::
|
.. parsed-literal::
|
||||||
|
|
||||||
struct foo_keywords
|
struct foo_keywords
|
||||||
: boost::keywords<
|
: boost::keywords<
|
||||||
**boost::arg<
|
**boost::named_param<
|
||||||
name_t
|
name_t
|
||||||
, mpl::false\_
|
, mpl::false\_
|
||||||
, is_convertible<mpl::\_, const char\*>
|
, is_convertible<mpl::\_, const char\*>
|
||||||
|
Reference in New Issue
Block a user