brintos

brintos / llvm-project-archived public Read only

0
0
Text · 714 B · 327ff56 Raw
28 lines · cpp
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9// <chrono>10 11// duration12 13// template <class Rep1, class Period, class Rep2>14//   duration<typename common_type<Rep1, Rep2>::type, Period>15//   operator/(const duration<Rep1, Period>& d, const Rep2& s);16 17#include <chrono>18 19#include "../../rep.h"20 21int main(int, char**)22{23    std::chrono::duration<Rep> d(Rep(15));24    d = d / 5;25 26  return 0;27}28