arsenalgear-cpp
A library containing general purpose C++ utils.
Macros | Functions
operators.hpp File Reference
#include <string>
Include dependency graph for operators.hpp:

Go to the source code of this file.

Macros

#define ARSENALGEAR_OPERATORS_HPP
 

Functions

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...
 

Detailed Description

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

Macro Definition Documentation

◆ ARSENALGEAR_OPERATORS_HPP

#define ARSENALGEAR_OPERATORS_HPP

Function Documentation

◆ 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
strThe string to be multiplied.
nThe 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
strThe string to be multiplied.
nThe integer to be multiplied.
Returns
std::string The multiplied string.