mirror of
https://github.com/boostorg/core.git
synced 2025-07-30 04:47:24 +02:00
Move constexpr notes to a separate section
This commit is contained in:
@ -29,15 +29,6 @@ avoids calling used-defined `operator&()`.
|
|||||||
`boost::addressof` was originally contributed by Brad King
|
`boost::addressof` was originally contributed by Brad King
|
||||||
based on ideas from discussion with Doug Gregor.
|
based on ideas from discussion with Doug Gregor.
|
||||||
|
|
||||||
In C++11 and above, `boost::addressof` is conditionally
|
|
||||||
`constexpr` when possible. This is indicated by
|
|
||||||
`BOOST_CORE_NO_CONSTEXPR_ADDRESSOF` not being defined.
|
|
||||||
|
|
||||||
With supported compilers, `boost::addressof` is always
|
|
||||||
`constexpr` by leveraging compiler intrinsics. This is
|
|
||||||
indicated by `BOOST_CORE_HAS_BUILTIN_ADDRESSOF` being
|
|
||||||
defined.
|
|
||||||
|
|
||||||
[section Synopsis]
|
[section Synopsis]
|
||||||
|
|
||||||
``
|
``
|
||||||
@ -69,6 +60,19 @@ void f() {
|
|||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
|
[section Notes]
|
||||||
|
|
||||||
|
In C++11 and above, `boost::addressof` is conditionally
|
||||||
|
`constexpr` when possible. This is indicated by
|
||||||
|
`BOOST_CORE_NO_CONSTEXPR_ADDRESSOF` not being defined.
|
||||||
|
|
||||||
|
With supported compilers, `boost::addressof` is always
|
||||||
|
`constexpr` by leveraging compiler intrinsics. This is
|
||||||
|
indicated by `BOOST_CORE_HAS_BUILTIN_ADDRESSOF` being
|
||||||
|
defined.
|
||||||
|
|
||||||
|
[endsect]
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
Reference in New Issue
Block a user