Fix comment typos, strip trailing whitespace. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@273357 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -74,7 +74,7 @@ int main()
|
|||||||
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
// test for presense of is_nothrow_swappable_with_v
|
// test for presence of is_nothrow_swappable_with_v
|
||||||
static_assert(std::is_nothrow_swappable_with_v<int&, int&>, "");
|
static_assert(std::is_nothrow_swappable_with_v<int&, int&>, "");
|
||||||
static_assert(!std::is_nothrow_swappable_with_v<int&&, int&&>, "");
|
static_assert(!std::is_nothrow_swappable_with_v<int&&, int&&>, "");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ int main()
|
|||||||
static_assert(!std::is_swappable<int() &>::value, "");
|
static_assert(!std::is_swappable<int() &>::value, "");
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
// test for presense of is_swappable_v
|
// test for presence of is_swappable_v
|
||||||
static_assert(std::is_swappable_v<int>, "");
|
static_assert(std::is_swappable_v<int>, "");
|
||||||
static_assert(!std::is_swappable_v<M>, "");
|
static_assert(!std::is_swappable_v<M>, "");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ int main()
|
|||||||
static_assert(!std::is_swappable_with<D&, C&>::value, "");
|
static_assert(!std::is_swappable_with<D&, C&>::value, "");
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
// test that cv void is guarded against as required.
|
// test that cv void is guarded against as required.
|
||||||
static_assert(!std::is_swappable_with_v<void, int>, "");
|
static_assert(!std::is_swappable_with_v<void, int>, "");
|
||||||
static_assert(!std::is_swappable_with_v<int, void>, "");
|
static_assert(!std::is_swappable_with_v<int, void>, "");
|
||||||
static_assert(!std::is_swappable_with_v<const void, const volatile void>, "");
|
static_assert(!std::is_swappable_with_v<const void, const volatile void>, "");
|
||||||
|
|||||||
@@ -29,5 +29,5 @@ int main () {
|
|||||||
}
|
}
|
||||||
// Smart pointers of type 'T[N]' are not tested here since they are not
|
// Smart pointers of type 'T[N]' are not tested here since they are not
|
||||||
// supported by the standard nor by libc++'s implementation.
|
// supported by the standard nor by libc++'s implementation.
|
||||||
// See http://reviews.llvm.org/D21320 for move information.
|
// See http://reviews.llvm.org/D21320 for more information.
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user