Home | History | Annotate | Download | only in time.duration.cast
      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 // UNSUPPORTED: c++03, c++11, c++14
     11 // <chrono>
     12 
     13 // floor
     14 
     15 // template <class ToDuration, class Rep, class Period>
     16 //   ToDuration
     17 //   floor(const duration<Rep, Period>& d);
     18 
     19 // ToDuration shall be an instantiation of duration.
     20 
     21 #include <chrono>
     22 
     23 int main()
     24 {
     25     std::chrono::floor<int>(std::chrono::milliseconds(3));
     26 }
     27