123456789101112131415161718192021222324252627282930313233343536 |
- #ifndef BOOST_CHRONO_CEIL_HPP
- #define BOOST_CHRONO_CEIL_HPP
- #include <boost/chrono/duration.hpp>
- namespace boost
- {
- namespace chrono
- {
-
- template <class To, class Rep, class Period>
- To ceil(const duration<Rep, Period>& d)
- {
- To t = duration_cast<To>(d);
- if (t < d)
- ++t;
- return t;
- }
- }
- }
- #endif
|