[libcxx-commits] [libcxx] aa5e3be - [libc++] s/_VSTD::chrono/chrono/g. NFCI.
Arthur O'Dwyer via libcxx-commits
libcxx-commits at lists.llvm.org
Tue May 11 09:24:51 PDT 2021
Author: Arthur O'Dwyer
Date: 2021-05-11T12:23:55-04:00
New Revision: aa5e3beea3d4d4e00cb2b0f2d103b4bd52239384
URL: https://github.com/llvm/llvm-project/commit/aa5e3beea3d4d4e00cb2b0f2d103b4bd52239384
DIFF: https://github.com/llvm/llvm-project/commit/aa5e3beea3d4d4e00cb2b0f2d103b4bd52239384.diff
LOG: [libc++] s/_VSTD::chrono/chrono/g. NFCI.
Added:
Modified:
libcxx/include/chrono
Removed:
################################################################################
diff --git a/libcxx/include/chrono b/libcxx/include/chrono
index 7823c8a73074..b6fbde462c45 100644
--- a/libcxx/include/chrono
+++ b/libcxx/include/chrono
@@ -1092,7 +1092,7 @@ public:
(__no_overflow<_Period2, period>::type::den == 1 &&
!treat_as_floating_point<_Rep2>::value))
>::type* = nullptr)
- : __rep_(_VSTD::chrono::duration_cast<duration>(__d).count()) {}
+ : __rep_(chrono::duration_cast<duration>(__d).count()) {}
// observer
@@ -1411,7 +1411,7 @@ inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
time_point<_Clock, _ToDuration>
time_point_cast(const time_point<_Clock, _Duration>& __t)
{
- return time_point<_Clock, _ToDuration>(_VSTD::chrono::duration_cast<_ToDuration>(__t.time_since_epoch()));
+ return time_point<_Clock, _ToDuration>(chrono::duration_cast<_ToDuration>(__t.time_since_epoch()));
}
#if _LIBCPP_STD_VER > 14
@@ -1927,13 +1927,13 @@ inline constexpr weekday& weekday::operator-=(const days& __dd) noexcept
class weekday_indexed {
private:
- _VSTD::chrono::weekday __wd;
+ chrono::weekday __wd;
unsigned char __idx;
public:
weekday_indexed() = default;
- inline constexpr weekday_indexed(const _VSTD::chrono::weekday& __wdval, unsigned __idxval) noexcept
+ inline constexpr weekday_indexed(const chrono::weekday& __wdval, unsigned __idxval) noexcept
: __wd{__wdval}, __idx(__idxval) {}
- inline constexpr _VSTD::chrono::weekday weekday() const noexcept { return __wd; }
+ inline constexpr chrono::weekday weekday() const noexcept { return __wd; }
inline constexpr unsigned index() const noexcept { return __idx; }
inline constexpr bool ok() const noexcept { return __wd.ok() && __idx >= 1 && __idx <= 5; }
};
@@ -1949,11 +1949,11 @@ bool operator!=(const weekday_indexed& __lhs, const weekday_indexed& __rhs) noex
class weekday_last {
private:
- _VSTD::chrono::weekday __wd;
+ chrono::weekday __wd;
public:
- explicit constexpr weekday_last(const _VSTD::chrono::weekday& __val) noexcept
+ explicit constexpr weekday_last(const chrono::weekday& __val) noexcept
: __wd{__val} {}
- constexpr _VSTD::chrono::weekday weekday() const noexcept { return __wd; }
+ constexpr chrono::weekday weekday() const noexcept { return __wd; }
constexpr bool ok() const noexcept { return __wd.ok(); }
};
More information about the libcxx-commits
mailing list