MCPcopy Create free account
hub / github.com/apache/singa / GetTypeId

Function GetTypeId

test/gtest/gtest.h:7377–7383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7375// same type argument is guaranteed to return the same ID.
7376template <typename T>
7377TypeId GetTypeId() {
7378 // The compiler is required to allocate a different
7379 // TypeIdHelper<T>::dummy_ variable for each T used to instantiate
7380 // the template. Therefore, the address of dummy_ is guaranteed to
7381 // be unique.
7382 return &(TypeIdHelper<T>::dummy_);
7383}
7384
7385// Returns the type ID of ::testing::Test. Always call this instead
7386// of GetTypeId< ::testing::Test>() to get the type ID of

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected