Function swap

Summary

#include <toml/comments.hpp>

(1) void swap(preserve_comments &lhs, preserve_comments &rhs)

(2) void swap(preserve_comments &lhs, std::vector< std::string > &rhs)

(3) void swap(std::vector< std::string > &lhs, preserve_comments &rhs)

(4) void swap(const discard_comments &, const discard_comments &) noexcept

#include <toml/result.hpp>

(5) template <typename T, typename E>
    void swap(result< T, E > &lhs, result< T, E > &rhs)

Function overload

Synopsis

#include <toml/comments.hpp>

void swap(preserve_comments &lhs, preserve_comments &rhs)

Description

No description yet.

Source

Lines 243-247 in toml/comments.hpp.

inline void swap(preserve_comments& lhs, preserve_comments& rhs)
{
    lhs.swap(rhs);
    return;
}

Synopsis

#include <toml/comments.hpp>

void swap(preserve_comments &lhs, std::vector< std::string > &rhs)

Description

No description yet.

Source

Lines 248-252 in toml/comments.hpp.

inline void swap(preserve_comments& lhs, std::vector<std::string>& rhs)
{
    lhs.comments.swap(rhs);
    return;
}

Synopsis

#include <toml/comments.hpp>

void swap(std::vector< std::string > &lhs, preserve_comments &rhs)

Description

No description yet.

Source

Lines 253-257 in toml/comments.hpp.

inline void swap(std::vector<std::string>& lhs, preserve_comments& rhs)
{
    lhs.swap(rhs.comments);
    return;
}

Synopsis

#include <toml/comments.hpp>

void swap(const discard_comments &, const discard_comments &) noexcept

Description

No description yet.

Source

Lines 462-462 in toml/comments.hpp.

inline void swap(const discard_comments&, const discard_comments&) noexcept {return;}

Synopsis

#include <toml/result.hpp>

template <typename T, typename E>
void swap(result< T, E > &lhs, result< T, E > &rhs)

Description

No description yet.

Source

Lines 671-676 in toml/result.hpp.

template<typename T, typename E>
void swap(result<T, E>& lhs, result<T, E>& rhs)
{
    lhs.swap(rhs);
    return;
}





Add Discussion as Guest

Log in