CPP07 1.0
|
Contains template functions for basic operations like swap, min, and max. [詳解]
#include <iostream>
関数 | |
template<typename T > | |
void | swap (T &a, T &b) |
Swaps the values of two variables. | |
template<typename T > | |
T const & | min (T const &a, T const &b) |
Returns the smaller of two values. If the values are equal, it returns the second value. | |
template<typename T > | |
T const & | max (T const &a, T const &b) |
Returns the greater of two values. If the values are equal, it returns the second value. | |
Contains template functions for basic operations like swap, min, and max.
whatever.hpp に定義があります。
Returns the greater of two values. If the values are equal, it returns the second value.
T | The type of the values to compare. |
a | The first value. |
b | The second value. |
whatever.hpp の 53 行目に定義があります。
Returns the smaller of two values. If the values are equal, it returns the second value.
T | The type of the values to compare. |
a | The first value. |
b | The second value. |
whatever.hpp の 43 行目に定義があります。