mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 11:15:34 +00:00
5bea7c3a56
MakeNotNull is similar to UniquePtr, in that it combines the infallible allocation and construction of an object on the heap and wraps the (raw or smart) pointer into a NotNull. It skips the unnecessary null check from WrapNotNull, and removes the usual naked 'new' used in many WrapNotNull calls. MozReview-Commit-ID: UwCrhDnkUg --HG-- extra : rebase_source : 5a027165fc17ed748783c7ffda03eb421865ad6e |
||
---|---|---|
.. | ||
gtest | ||
moz.build | ||
TestArray.cpp | ||
TestArrayUtils.cpp | ||
TestAtomics.cpp | ||
TestBinarySearch.cpp | ||
TestBloomFilter.cpp | ||
TestBufferList.cpp | ||
TestCasting.cpp | ||
TestCeilingFloor.cpp | ||
TestCheckedInt.cpp | ||
TestCountPopulation.cpp | ||
TestCountZeroes.cpp | ||
TestDefineEnum.cpp | ||
TestDoublyLinkedList.cpp | ||
TestEndian.cpp | ||
TestEnumeratedArray.cpp | ||
TestEnumSet.cpp | ||
TestEnumTypeTraits.cpp | ||
TestFastBernoulliTrial.cpp | ||
TestFloatingPoint.cpp | ||
TestIntegerPrintfMacros.cpp | ||
TestIntegerRange.cpp | ||
TestJSONWriter.cpp | ||
TestLinkedList.cpp | ||
TestMacroArgs.cpp | ||
TestMacroForEach.cpp | ||
TestMathAlgorithms.cpp | ||
TestMaybe.cpp | ||
TestNotNull.cpp | ||
TestPair.cpp | ||
TestPoisonArea.cpp | ||
TestRange.cpp | ||
TestRefPtr.cpp | ||
TestResult.cpp | ||
TestRollingMean.cpp | ||
TestSaturate.cpp | ||
TestScopeExit.cpp | ||
TestSegmentedVector.cpp | ||
TestSHA1.cpp | ||
TestSmallPointerArray.cpp | ||
TestSplayTree.cpp | ||
TestTemplateLib.cpp | ||
TestThreadSafeWeakPtr.cpp | ||
TestTuple.cpp | ||
TestTypedEnum.cpp | ||
TestTypeTraits.cpp | ||
TestUniquePtr.cpp | ||
TestVariant.cpp | ||
TestVector.cpp | ||
TestWeakPtr.cpp | ||
TestXorShift128PlusRNG.cpp |