| 104 | /// `Exception` instead, when the container is empty. |
| 105 | template <typename T> |
| 106 | decltype(T().front()) |
| 107 | Front(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 | |
| 117 | template <typename T> |
no test coverage detected