IMP Reference Guide
2.18.0
The Integrative Modeling Platform
|
Macros to help with swapping two objects. More...
#include <IMP/kernel_config.h>
Go to the source code of this file.
Macros | |
#define | IMP_SWAP_MEMBER(var_name) swap(var_name, o.var_name) |
Swap two member variables assuming the other object is called o. More... | |
Macros to help with swapping two objects.
Copyright 2007-2022 IMP Inventors. All rights reserved.
Definition in file swap_macros.h.
#define IMP_SWAP | ( | Name | ) |
Definition at line 22 of file swap_macros.h.
#define IMP_SWAP_MEMBER | ( | var_name | ) | swap(var_name, o.var_name) |
Swap two member variables assuming the other object is called o.
Swap the member var_name
of the two objects (this and o).
Definition at line 61 of file swap_macros.h.