Add [specref] references to all the section-comments in TypeTraits.h, to further ease reading/searching. Followup to bug 853988, suggested by froydnj

--HG--
extra : rebase_source : 896b6abb3430b890a8de699fc044d0cd0624936a
This commit is contained in:
Jeff Walden 2013-03-25 12:05:19 -07:00
parent 200b63bd51
commit ae6f2fa9c6

View File

@ -17,7 +17,7 @@
namespace mozilla {
/* 20.9.3 Helper classes */
/* 20.9.3 Helper classes [meta.help] */
/**
* Helper class used as a base for various type traits, exposed publicly
@ -35,9 +35,9 @@ struct IntegralConstant
typedef IntegralConstant<bool, true> TrueType;
typedef IntegralConstant<bool, false> FalseType;
/* 20.9.4 Unary type traits */
/* 20.9.4 Unary type traits [meta.unary] */
/* 20.9.4.1 Primary type categories */
/* 20.9.4.1 Primary type categories [meta.unary.cat] */
/**
* IsPointer determines whether a type is a pointer type (but not a pointer-to-
@ -55,9 +55,9 @@ struct IsPointer : FalseType {};
template<typename T>
struct IsPointer<T*> : TrueType {};
/* 20.9.4.2 Composite type traits */
/* 20.9.4.2 Composite type traits [meta.unary.comp] */
/* 20.9.4.3 Type properties */
/* 20.9.4.3 Type properties [meta.unary.prop] */
/**
* Traits class for identifying POD types. Until C++11 there's no automatic
@ -87,9 +87,9 @@ template<> struct IsPod<double> : TrueType {};
template<> struct IsPod<wchar_t> : TrueType {};
template<typename T> struct IsPod<T*> : TrueType {};
/* 20.9.5 Type property queries */
/* 20.9.5 Type property queries [meta.unary.prop.query] */
/* 20.9.6 Relationships between types */
/* 20.9.6 Relationships between types [meta.rel] */
/**
* IsSame tests whether two types are the same type.
@ -223,19 +223,19 @@ struct IsConvertible
: IntegralConstant<bool, detail::ConvertibleTester<From, To>::value>
{};
/* 20.9.7 Transformations between types */
/* 20.9.7 Transformations between types [meta.trans] */
/* 20.9.7.1 Const-volatile modifications */
/* 20.9.7.1 Const-volatile modifications [meta.trans.cv] */
/* 20.9.7.2 Reference modifications */
/* 20.9.7.2 Reference modifications [meta.trans.ref] */
/* 20.9.7.3 Sign modifications */
/* 20.9.7.3 Sign modifications [meta.trans.sign] */
/* 20.9.7.4 Array modifications */
/* 20.9.7.4 Array modifications [meta.trans.arr] */
/* 20.9.7.5 Pointer modifications */
/* 20.9.7.5 Pointer modifications [meta.trans.ptr] */
/* 20.9.7.6 Other transformations */
/* 20.9.7.6 Other transformations [meta.trans.other] */
/**
* EnableIf is a struct containing a typedef of T if and only if B is true.