MCPcopy Create free account
hub / github.com/SuperElastix/elastix / Front

Function Front

Core/Main/GTesting/elxCoreMainGTestUtilities.h:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104/// `Exception` instead, when the container is empty.
105template <typename T>
106decltype(T().front())
107Front(T & container)
108{
109 if (container.empty())
110 {
111 throw Exception("Front error: the container should be non-empty!");
112 }
113 return container.front();
114}
115
116
117template <typename T>

Callers 1

GTEST_TESTFunction · 0.85

Calls 2

ExceptionClass · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected