Chromium Code Reviews| Index: Source/wtf/VectorTraits.h |
| diff --git a/Source/wtf/VectorTraits.h b/Source/wtf/VectorTraits.h |
| index 7716835a1b5c0033ff7e984f846eba86ac315932..636dd062035025e69d1b0d47d7bb4b6958274bc9 100644 |
| --- a/Source/wtf/VectorTraits.h |
| +++ b/Source/wtf/VectorTraits.h |
| @@ -108,6 +108,15 @@ namespace WTF { \ |
| }; \ |
| } |
| +#define WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(ClassName) \ |
| +namespace WTF { \ |
| + template<> \ |
|
tkent
2014/05/29 01:19:23
nit: We don't need to indent the content of namesp
sof
2014/05/29 10:03:53
yes, indentation is used for this entire file, so
|
| + struct VectorTraits<ClassName> : VectorTraitsBase<ClassName> \ |
| + { \ |
| + static const bool canInitializeWithMemset = true; \ |
| + }; \ |
| +} |
| + |
| using WTF::VectorTraits; |
| using WTF::SimpleClassVectorTraits; |