#include "function_basics.hpp" #include namespace functions { auto square(const int value) -> int { return value * value; } void swap_integers(int& lhs, int& rhs) { const int tmp = lhs; lhs = rhs; rhs = tmp; } auto concatenate(const std::vector& parts) -> std::string { return std::ranges::to(std::views::join(parts)); } void append_suffix(std::string& text, const std::string& suffix) { // The string is passed by reference, so it can have text appended text += suffix; } } // namespace functions