Tôi đã xem qua một mã số khi đọc một article, tác giả khẳng định rằng "thư viện chuẩn C++ cung cấp các định nghĩa loại sau đây:"typedef sau có nghĩa là gì trong chrono :: duration?
namespace std {
namespace chrono {
typedef duration<signed int-type >= 64 bits,nano> nanoseconds;
typedef duration<signed int-type >= 55 bits,micro> microseconds;
typedef duration<signed int-type >= 45 bits,milli> milliseconds;
typedef duration<signed int-type >= 35 bits> seconds;
typedef duration<signed int-type >= 29 bits,ratio<60>> minutes;
typedef duration<signed int-type >= 23 bits,ratio<3600>> hours;
}
}
Câu hỏi của tôi là gì signed int-type >= 64 bits
nghĩa là gì? Điều đó có nghĩa là signed int
trừ type
? Và nếu vậy bạn giải thích như thế nào?
[CPPReference] (http://en.cppreference.com/w/cpp/chrono/duration) là một tài liệu tham khảo tuyệt vời cho C++, và trong trường hợp này trình bày những typedefs trong một định dạng rõ ràng hơn. – Barry