Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 921f744952ccb925d0066c7aa482379f11e19c89 1 parent d86f80c
@jswalden jswalden authored
Showing with 14 additions and 14 deletions.
  1. +14 −14 mfbt/TypeTraits.h
View
28 mfbt/TypeTraits.h
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.