1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // <shared_mutex>
11 
12 // template <class Mutex>
13 // class shared_lock
14 // {
15 // public:
16 //     typedef Mutex mutex_type;
17 //     ...
18 // };
19 
20 #include <shared_mutex>
21 #include <type_traits>
22 
23 int main()
24 {
25 #if _LIBCPP_STD_VER > 11
26     static_assert((std::is_same<std::shared_lock<std::mutex>::mutex_type,
27                    std::mutex>::value), "");
28 #endif  // _LIBCPP_STD_VER > 11
29 }
30