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