| 143 | } |
| 144 | |
| 145 | static void check_remove_node ( |
| 146 | unsigned long index, |
| 147 | const graph& self |
| 148 | ) |
| 149 | { |
| 150 | // make sure requires clause is not broken |
| 151 | DLIB_CASSERT(index < self.number_of_nodes(), |
| 152 | "\tvoid graph::remove_node(index)" |
| 153 | << "\n\tYou have specified an invalid index" |
| 154 | << "\n\tindex: " << index |
| 155 | << "\n\tnumber_of_nodes(): " << self.number_of_nodes() |
| 156 | << "\n\tthis: " << &self |
| 157 | ); |
| 158 | } |
| 159 | }; |
| 160 | |
| 161 | template <typename node_type, typename graph> |
nothing calls this directly
no test coverage detected