square.hpp 473 B

1234567891011121314151617181920212223
  1. // Copyright 2018-2019 Hans Dembinski
  2. //
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // (See accompanying file LICENSE_1_0.txt
  5. // or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. #ifndef BOOST_HISTOGRAM_DETAIL_SQUARE_HPP
  7. #define BOOST_HISTOGRAM_DETAIL_SQUARE_HPP
  8. namespace boost {
  9. namespace histogram {
  10. namespace detail {
  11. template <class T>
  12. T square(T t) {
  13. return t * t;
  14. }
  15. } // namespace detail
  16. } // namespace histogram
  17. } // namespace boost
  18. #endif