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// <mutex> 11 12// template <class Mutex> 13// class lock_guard 14// { 15// public: 16// typedef Mutex mutex_type; 17// ... 18// }; 19 20#include <mutex> 21#include <type_traits> 22 23int main() 24{ 25 static_assert((std::is_same<std::lock_guard<std::mutex>::mutex_type, 26 std::mutex>::value), ""); 27} 28