mirror of
https://github.com/boostorg/utility.git
synced 2025-07-30 04:47:30 +02:00
fix www.boost.org links
[SVN r26093]
This commit is contained in:
@ -128,7 +128,7 @@ When valid, <TT>enable_if_c<B, T>::type</TT> equals <TT>T</TT>.
|
|||||||
The <TT>enable_if_c</TT> template can thus be used for controlling when functions are considered for
|
The <TT>enable_if_c</TT> template can thus be used for controlling when functions are considered for
|
||||||
overload resolution and when they are not.
|
overload resolution and when they are not.
|
||||||
For example, the following function is defined for all arithmetic types (according to the
|
For example, the following function is defined for all arithmetic types (according to the
|
||||||
classification of the <A HREF="http://www.boost.org/libs/type_traits">Boost type_traits library</A>):
|
classification of the <A HREF="../type_traits/index.html">Boost type_traits library</A>):
|
||||||
<PRE>template <class T>
|
<PRE>template <class T>
|
||||||
typename enable_if_c<boost::is_arithmetic<T>::value, T>::type
|
typename enable_if_c<boost::is_arithmetic<T>::value, T>::type
|
||||||
foo(T t) { return t; }
|
foo(T t) { return t; }
|
||||||
|
Reference in New Issue
Block a user