#include <string>
Go to the source code of this file.
|
template<typename T > |
std::string | operator* (const T &generic_string, unsigned int integer) |
| Function to multiply a string by an integer. More...
|
|
template<typename T > |
std::string | operator* (unsigned int integer, const T &generic_string) |
| Function to multiply an integer by a string. More...
|
|
- Author
- Gianluca Bianco (bianc.nosp@m.ogia.nosp@m.nluca.nosp@m.9@gm.nosp@m.ail.c.nosp@m.om)
- Date
- 2022-06-09
- Copyright
- Copyright (c) 2022 Gianluca Bianco under the MIT license.
◆ ARSENALGEAR_OPERATORS_HPP
#define ARSENALGEAR_OPERATORS_HPP |
◆ operator*() [1/2]
template<typename T >
std::string operator* |
( |
const T & |
generic_string, |
|
|
unsigned int |
integer |
|
) |
| |
|
inline |
Function to multiply a string by an integer.
- Parameters
-
str | The string to be multiplied. |
n | The integer to be multiplied. |
- Returns
- std::string The multiplied string.
◆ operator*() [2/2]
template<typename T >
std::string operator* |
( |
unsigned int |
integer, |
|
|
const T & |
generic_string |
|
) |
| |
|
inline |
Function to multiply an integer by a string.
- Parameters
-
str | The string to be multiplied. |
n | The integer to be multiplied. |
- Returns
- std::string The multiplied string.