Export of internal Abseil changes.
-- 9850e5567db4ab7cf4928e68d1c6e232d9845fff by Abseil Team <absl-team@google.com>: Add missing file parameter for FPrintF example. PiperOrigin-RevId: 208238843 -- e3aa5daed78a2d38f0f19c20db93d6b9cca54041 by Abseil Team <absl-team@google.com>: Internal cleanup. PiperOrigin-RevId: 208216296 -- 6ec960705441f7ae7383214160cf78244b0ac614 by Abseil Team <absl-team@google.com>: Import of CCTZ from GitHub. PiperOrigin-RevId: 208111059 GitOrigin-RevId: 9850e5567db4ab7cf4928e68d1c6e232d9845fff Change-Id: I3ceef9b66ffc8d434eb522f79479581975e780e6
This commit is contained in:
parent
f0f15c2778
commit
86f0fe93ad
3 changed files with 3 additions and 5 deletions
|
@ -213,7 +213,6 @@ cc_test(
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
deps = [
|
deps = [
|
||||||
":internal",
|
":internal",
|
||||||
":strings",
|
|
||||||
"//absl/base:core_headers",
|
"//absl/base:core_headers",
|
||||||
"@com_google_googletest//:gtest_main",
|
"@com_google_googletest//:gtest_main",
|
||||||
],
|
],
|
||||||
|
@ -375,7 +374,6 @@ cc_test(
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
deps = [
|
deps = [
|
||||||
":strings",
|
":strings",
|
||||||
"//absl/memory",
|
|
||||||
"@com_github_google_benchmark//:benchmark_main",
|
"@com_github_google_benchmark//:benchmark_main",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
|
@ -368,7 +368,7 @@ int PrintF(const FormatSpec<Args...>& format, const Args&... args) {
|
||||||
// Example:
|
// Example:
|
||||||
//
|
//
|
||||||
// std::string_view s = "Ulaanbaatar";
|
// std::string_view s = "Ulaanbaatar";
|
||||||
// absl::FPrintF("The capital of Mongolia is %s", s);
|
// absl::FPrintF(stdout, "The capital of Mongolia is %s", s);
|
||||||
//
|
//
|
||||||
// Outputs: "The capital of Mongolia is Ulaanbaatar"
|
// Outputs: "The capital of Mongolia is Ulaanbaatar"
|
||||||
//
|
//
|
||||||
|
|
|
@ -355,11 +355,11 @@ class civil_time {
|
||||||
: civil_time(ct.f_) {}
|
: civil_time(ct.f_) {}
|
||||||
|
|
||||||
// Factories for the maximum/minimum representable civil_time.
|
// Factories for the maximum/minimum representable civil_time.
|
||||||
static civil_time max() {
|
static CONSTEXPR_F civil_time max() {
|
||||||
const auto max_year = std::numeric_limits<std::int_least64_t>::max();
|
const auto max_year = std::numeric_limits<std::int_least64_t>::max();
|
||||||
return civil_time(max_year, 12, 31, 23, 59, 59);
|
return civil_time(max_year, 12, 31, 23, 59, 59);
|
||||||
}
|
}
|
||||||
static civil_time min() {
|
static CONSTEXPR_F civil_time min() {
|
||||||
const auto min_year = std::numeric_limits<std::int_least64_t>::min();
|
const auto min_year = std::numeric_limits<std::int_least64_t>::min();
|
||||||
return civil_time(min_year, 1, 1, 0, 0, 0);
|
return civil_time(min_year, 1, 1, 0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue