My Project
include
bsl
min_of.hpp
Go to the documentation of this file.
1
28
#ifndef BSL_MIN_OF_HPP
29
#define BSL_MIN_OF_HPP
30
31
namespace
bsl
32
{
45
template
<
typename
T>
46
constexpr T
const
&
47
min_of
(T
const
&a, T
const
&b) noexcept
48
{
49
return
(b < a) ? b : a;
50
}
51
}
52
53
#endif
bsl::min_of
constexpr T const & min_of(T const &a, T const &b) noexcept
Returns a if a is smaller than b, otherwise returns b. Note that this function is called min_of to pr...
Definition:
min_of.hpp:47
Generated by
1.8.15