Class String¶
Defined in File String.hpp
Class Documentation¶
-
class String¶
Public Functions
-
String() = delete¶
-
explicit String(const std::string &str)¶
Constructor for the String class.
- Parameters
str – [in] Const std::string variable which is used to initialize
- Returns
String initialized with given str
-
explicit String(std::string &&str) noexcept¶
-
explicit String(const char *str)¶
-
String &operator=(String &&other) noexcept = default¶
Move assigment operator for the String class.
Note
Behaves as the default move assignemnt operator provided by compiler
-
String &operator=(const String &other) = delete¶
Deleted copy assigment operator for the String class.
Note
This line explicitly deletes the copy assignment operator for the String class, preventing copying
-
bool operator<(const std::string &rhs) const noexcept¶
Comparision operators for the String Class.
- Parameters
rhs – [in] std::string variable
- Returns
True or False, depending on if String <operator> rhs is True or False lexicographically
-
bool operator>(const std::string &rhs) const noexcept¶
-
bool operator<=(const std::string &rhs) const noexcept¶
-
bool operator>=(const std::string &rhs) const noexcept¶
-
bool operator==(const std::string &rhs) const noexcept¶
-
bool operator!=(const std::string &rhs) const noexcept¶
-
const char *c_str() const noexcept¶
Returns the C style string for this class.
- Returns
C string for the current class
-
String() = delete¶