blob: ea05bae0b41984a4f2163f80371d4b0f788e0f9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <mutex>
// template <class Mutex>
// class unique_lock
// {
// public:
// typedef Mutex mutex_type;
// ...
// };
#include <mutex>
#include <type_traits>
int main()
{
static_assert((std::is_same<std::unique_lock<std::mutex>::mutex_type,
std::mutex>::value), "");
}
|