Replace tabs with spaces in more files.
--HG-- branch : trunk
This commit is contained in:
1 parent
b0694d7e5e
commit
d230302b16
602 files changed
+41367
-41366
No files matched your search
@@ -35,7 +35,7 @@ namespace ZThread {
|
||||
*
|
||||
* @see ThreadLocal
|
||||
*/
|
||||
class ZTHREAD_API ThreadLocalImpl : private NonCopyable {
|
||||
class ZTHREAD_API ThreadLocalImpl : private NonCopyable {
|
||||
public:
|
||||
|
||||
class Value;
|
||||
@@ -52,17 +52,17 @@ namespace ZThread {
|
||||
|
||||
//! Create a ThreadLocalImpl
|
||||
ThreadLocalImpl();
|
||||
|
||||
|
||||
//! Destroy a ThreadLocalImpl
|
||||
~ThreadLocalImpl();
|
||||
|
||||
|
||||
/**
|
||||
* @class InitialValueFn
|
||||
*/
|
||||
template <typename T>
|
||||
struct InitialValueFn {
|
||||
struct InitialValueFn {
|
||||
T operator()() { return T(); }
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* @class ChildValueFn
|
||||
@@ -71,18 +71,18 @@ namespace ZThread {
|
||||
template <typename T>
|
||||
T operator()(const T& value) { return T(value); }
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @class UniqueChildValueFn
|
||||
*/
|
||||
struct UniqueChildValueFn : public ChildValueFn { };
|
||||
|
||||
|
||||
/**
|
||||
* @class InheritableValueFn
|
||||
*/
|
||||
struct InheritableValueFn {
|
||||
|
||||
template <typename T>
|
||||
template <typename T>
|
||||
bool operator()(const T&) { return true; }
|
||||
|
||||
bool operator()(const UniqueChildValueFn&) { return false; }
|
||||
|
||||
Reference in new issue
Block a user