MCPcopy Create free account
hub / github.com/davisking/dlib / remove

Method remove

dlib/map/map_kernel_c.h:153–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 typename map_base
152 >
153 void map_kernel_c<map_base>::
154 remove (
155 const domain& d,
156 domain& d_copy,
157 range& r
158 )
159 {
160 // make sure requires clause is not broken
161 DLIB_CASSERT( (this->is_in_domain(d)) &&
162 (static_cast<const void*>(&d) != static_cast<void*>(&r)) &&
163 (static_cast<void*>(&r) != static_cast<void*>(&d_copy)) &&
164 (static_cast<const void*>(&d) != static_cast<void*>(&d_copy)),
165 "\tvoid map::remove"
166 << "\n\tcan't remove something that isn't in the map or if the paremeters actually"
167 << "\n\tare the same variable. Either way can't remove."
168 << "\n\tis_in_domain(d): " << (this->is_in_domain(d) ? "true" : "false")
169 << "\n\tthis: " << this
170 << "\n\t&d: " << static_cast<const void*>(&d)
171 << "\n\t&r: " << static_cast<void*>(&r)
172 << "\n\t&d_copy: " << static_cast<void*>(&d_copy)
173 );
174
175 // call the real function
176 map_base::remove(d,d_copy,r);
177 }
178
179// ----------------------------------------------------------------------------------------
180

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected