[#BloombergLP-ball-swap-0b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::swap :relfileprefix: ../../ :mrdocs: `swap` overloads == Synopses Declared in `<ball_categorymanager_radixtree.h>` Swap the value of the specified `a` object with the value of the specified `b` object. This method provides the no‐throw exception‐safety guarantee if either `a.type()` is the same as `b.type()` and `a` and `b` were created with the same allocator, or neither `a.type()` nor `b.type()` is a type that requires allocation; otherwise, it provides the basic guarantee. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/ball/swap-0a.adoc[swap]( xref:BloombergLP/ball/UserFieldValue.adoc[UserFieldValue]& a, xref:BloombergLP/ball/UserFieldValue.adoc[UserFieldValue]& b); ---- [.small]#xref:BloombergLP/ball/swap-0a.adoc[_» more..._]# Swap the value of the specified `a` object with the value of the specified `b` object. If `a` and `b` were created with the same allocator, then this method provides the no‐throw exception‐safety guarantee; otherwise, it provides the basic guarantee. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/ball/swap-0e.adoc[swap]( xref:BloombergLP/ball/UserFields.adoc[UserFields]& a, xref:BloombergLP/ball/UserFields.adoc[UserFields]& b); ---- [.small]#xref:BloombergLP/ball/swap-0e.adoc[_» more..._]# Exchange the values of the specified trees. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/ball/swap-09.adoc[swap]( xref:BloombergLP/ball/CategoryManager_RadixTree.adoc[CategoryManager_RadixTree<t_TYPE>]& a, xref:BloombergLP/ball/CategoryManager_RadixTree.adoc[CategoryManager_RadixTree<t_TYPE>]& b); ---- [.small]#xref:BloombergLP/ball/swap-09.adoc[_» more..._]# Exchange the values of the specified `a` and `b` objects. This function provides the no‐throw exception‐safety guarantee if the two objects were created with the same allocator and the basic guarantee otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_VALUE> void xref:BloombergLP/ball/swap-06.adoc[swap]( xref:BloombergLP/ball/CategoryManager_RadixTree.adoc[CategoryManager_RadixTree<t_VALUE>]& a, xref:BloombergLP/ball/CategoryManager_RadixTree.adoc[CategoryManager_RadixTree<t_VALUE>]& b); ---- [.small]#xref:BloombergLP/ball/swap-06.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#