sirit/src
Lioncash 6fd44e494c Pass std::string by value where applicable.
By taking the std::string by value in the constructor, this allows for
certain situations where copies can be elided entirely (when moving an
instance into the constructor)

e.g.

std::string var = ...

...

... = LiteralString(std::move(var)) // Or whatever other initialization
                                    // is done.

No copy will be done in this case, the move transfers it into the
constructor, and then the move within the initializer list transfers it
into the member variable.

tl;dr: This allows the calling code to potentially construct less
std::string instances by allowing moving into the parameters themselves.
2019-03-14 04:30:39 -03:00
..
instructions Pass std::string by value where applicable. 2019-03-14 04:30:39 -03:00
.gitignore Ignore sirit.h symlink 2018-10-23 04:51:34 -03:00
CMakeLists.txt Rename "insts" directory to "instructions" 2018-11-16 04:15:48 -03:00
common_types.h Upgrade from LGPLv2.1 to LGPLv3 2018-11-16 04:10:10 -03:00
literal_number.cpp Change clang-format settings 2019-03-11 03:26:21 -03:00
literal_number.h src: Amend missing override specifiers 2019-03-14 02:25:57 -04:00
literal_string.cpp Pass std::string by value where applicable. 2019-03-14 04:30:39 -03:00
literal_string.h Pass std::string by value where applicable. 2019-03-14 04:30:39 -03:00
op.cpp Pass std::string by value where applicable. 2019-03-14 04:30:39 -03:00
op.h Pass std::string by value where applicable. 2019-03-14 04:30:39 -03:00
operand.cpp operand: Append default to the default constructor 2019-03-14 02:50:07 -04:00
operand.h Change clang-format settings 2019-03-11 03:26:21 -03:00
sirit.cpp Pass std::string by value where applicable. 2019-03-14 04:30:39 -03:00
stream.cpp Change clang-format settings 2019-03-11 03:26:21 -03:00
stream.h Change clang-format settings 2019-03-11 03:26:21 -03:00