junlon2006 / cpp-feature

c++11 feature etc.
Apache License 2.0
0 stars 1 forks source link

cpp-feature

1、实现一个类,只能在栈上申请对象,不能在堆上申明对象:CreateStackOnlyClass.cpp
2、实现一个类,只能在堆上申请对象,不能在栈上申明对象:CreateHeapOnlyClass.cpp
3、实现一个类,不可以被继承:FinalClass.cpp
4、c++11 Thread、shared_ptr、lock_guard(RAII):Thread.cpp
5、c++11 recursive_mutex:RecursiveMutex.cpp
6、c++11 condition_variable:ConditionVariable.cpp
7、c++11 condition_variable:SimpleSyncQueue.cpp
8、c++11 shared_ptr:SmartPointer.cpp
9、c++11 thread_pool:ThreadPool.cpp
10、c++11 RAII:RAII.cpp
11、c++11 Atomic:Atomic.cpp