MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / Message

Method Message

Examples/NoModules/Chapter 13/Ex13_12B/Message.cpp:5–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <utility> // For std::swap()
4
5Message::Message(const Message& message)
6 : Message{ message.m_text } // By far easiest and preferred option: forward to existing constructor!
7{
8}
9
10Message& Message::operator=(const Message& message)
11{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected