- chrono[meta header]
- std::chrono[meta namespace]
- duration_values[meta class]
- function[meta id-type]
- cpp11[meta cpp]
static constexpr Rep zero(); // C++11
static constexpr Rep zero() noexcept; // C++20
Rep
型の初期値を取得する
Rep(0)
#include <iostream>
#include <chrono>
using namespace std::chrono;
int main()
{
std::cout << duration_values<seconds::rep>::zero() << std::endl;
}
- zero[color ff0000]
0
- C++11
- GCC: 4.6.1 [mark verified]
- Visual C++: 2012 [mark verified], 2013 [mark verified], 2015 [mark verified]