MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / swap

Method swap

proto/enums.cpp:283–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283void Enums::swap(Enums& other) noexcept
284{
285 using std::swap;
286 swap(byte0, other.byte0);
287 swap(byte1, other.byte1);
288 swap(byte2, other.byte2);
289 swap(byte3, other.byte3);
290 swap(byte4, other.byte4);
291 swap(byte5, other.byte5);
292 swap(char0, other.char0);
293 swap(char1, other.char1);
294 swap(char2, other.char2);
295 swap(char3, other.char3);
296 swap(char4, other.char4);
297 swap(char5, other.char5);
298 swap(wchar0, other.wchar0);
299 swap(wchar1, other.wchar1);
300 swap(wchar2, other.wchar2);
301 swap(wchar3, other.wchar3);
302 swap(wchar4, other.wchar4);
303 swap(wchar5, other.wchar5);
304 swap(int8b0, other.int8b0);
305 swap(int8b1, other.int8b1);
306 swap(int8b2, other.int8b2);
307 swap(int8b3, other.int8b3);
308 swap(int8b4, other.int8b4);
309 swap(int8b5, other.int8b5);
310 swap(uint8b0, other.uint8b0);
311 swap(uint8b1, other.uint8b1);
312 swap(uint8b2, other.uint8b2);
313 swap(uint8b3, other.uint8b3);
314 swap(uint8b4, other.uint8b4);
315 swap(uint8b5, other.uint8b5);
316 swap(int16b0, other.int16b0);
317 swap(int16b1, other.int16b1);
318 swap(int16b2, other.int16b2);
319 swap(int16b3, other.int16b3);
320 swap(int16b4, other.int16b4);
321 swap(int16b5, other.int16b5);
322 swap(uint16b0, other.uint16b0);
323 swap(uint16b1, other.uint16b1);
324 swap(uint16b2, other.uint16b2);
325 swap(uint16b3, other.uint16b3);
326 swap(uint16b4, other.uint16b4);
327 swap(uint16b5, other.uint16b5);
328 swap(int32b0, other.int32b0);
329 swap(int32b1, other.int32b1);
330 swap(int32b2, other.int32b2);
331 swap(int32b3, other.int32b3);
332 swap(int32b4, other.int32b4);
333 swap(int32b5, other.int32b5);
334 swap(uint32b0, other.uint32b0);
335 swap(uint32b1, other.uint32b1);
336 swap(uint32b2, other.uint32b2);
337 swap(uint32b3, other.uint32b3);
338 swap(uint32b4, other.uint32b4);
339 swap(uint32b5, other.uint32b5);
340 swap(int64b0, other.int64b0);

Callers

nothing calls this directly

Calls 1

swapFunction · 0.85

Tested by

no test coverage detected