Skip to content

Commit

Permalink
Drop docs for thrust::swap
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Dec 3, 2024
1 parent 1583514 commit 52268d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 49 deletions.
10 changes: 0 additions & 10 deletions docs/thrust/api_docs/utility/swap.rst

This file was deleted.

39 changes: 0 additions & 39 deletions thrust/thrust/swap.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,47 +35,8 @@

THRUST_NAMESPACE_BEGIN

/*! \addtogroup utility
* \{
*/

/*! \addtogroup swap
* \{
*/

/*! \p swap assigns the contents of \c a to \c b and the
* contents of \c b to \c a. This is used as a primitive operation
* by many other algorithms.
*
* \param a The first value of interest. After completion,
* the value of b will be returned here.
* \param b The second value of interest. After completion,
* the value of a will be returned here.
*
* \tparam Assignable is a model of <a
* href="https://en.cppreference.com/w/cpp/named_req/CopyAssignable">Assignable</a>.
*
* The following code snippet demonstrates how to use \p swap to
* swap the contents of two variables.
*
* \code
* #include <thrust/swap.h>
* ...
* int x = 1;
* int y = 2;
* thrust::swap(x,h);
*
* // x == 2, y == 1
* \endcode
*/
using ::cuda::std::swap;

/*! \} // swap
*/

/*! \} // utility
*/

/*! \addtogroup copying
* \{
*/
Expand Down

0 comments on commit 52268d2

Please sign in to comment.