Function operator=

Summary

#include <include/spdlog/details/log_msg_buffer.h>

(1) log_msg_buffer & operator=(const log_msg_buffer &other)

(2) log_msg_buffer & operator=(log_msg_buffer &&other) SPDLOG_NOEXCEPT

Function overload

Synopsis

#include <include/spdlog/details/log_msg_buffer.h>

log_msg_buffer & operator=(const log_msg_buffer &other)

Description

No description yet.

Source

Lines 36-43 in include/spdlog/details/log_msg_buffer-inl.h. Line 24 in include/spdlog/details/log_msg_buffer.h.

SPDLOG_INLINE log_msg_buffer &log_msg_buffer::operator=(const log_msg_buffer &other)
{
    log_msg::operator=(other);
    buffer.clear();
    buffer.append(other.buffer.data(), other.buffer.data() + other.buffer.size());
    update_string_views();
    return *this;
}

Synopsis

#include <include/spdlog/details/log_msg_buffer.h>

log_msg_buffer & operator=(log_msg_buffer &&other) SPDLOG_NOEXCEPT

Description

No description yet.

Source

Lines 45-51 in include/spdlog/details/log_msg_buffer-inl.h. Line 25 in include/spdlog/details/log_msg_buffer.h.

SPDLOG_INLINE log_msg_buffer &log_msg_buffer::operator=(log_msg_buffer &&other) SPDLOG_NOEXCEPT
{
    log_msg::operator=(other);
    buffer = std::move(other.buffer);
    update_string_views();
    return *this;
}





Add Discussion

Log in to comment