1 // boost/chrono/round.hpp ------------------------------------------------------------//
3 // (C) Copyright Howard Hinnant
4 // Copyright 2011 Vicente J. Botet Escriba
6 // Distributed under the Boost Software License, Version 1.0. (See accompanying
7 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 // See http://www.boost.org/libs/chrono for documentation.
11 #ifndef BOOST_CHRONO_FLOOR_HPP
12 #define BOOST_CHRONO_FLOOR_HPP
14 #include <boost/chrono/duration.hpp>
24 template <class To, class Rep, class Period>
25 To floor(const duration<Rep, Period>& d)
27 To t = duration_cast<To>(d);