Faker C++
Loading...
Searching...
No Matches
faker::sport Namespace Reference

Functions

FAKER_CXX_EXPORT std::string_view sportName ()
 Returns a random sport.
 
FAKER_CXX_EXPORT std::string_view soccerTeam ()
 Returns a random soccer team.
 
FAKER_CXX_EXPORT std::string_view maleAthlete ()
 Returns a random male athlete.
 
FAKER_CXX_EXPORT std::string_view femaleAthlete ()
 Returns a random female athlete.
 
FAKER_CXX_EXPORT std::string_view sportEvent ()
 Returns a random Sport Event.
 

Function Documentation

◆ femaleAthlete()

FAKER_CXX_EXPORT std::string_view faker::sport::femaleAthlete ( )

Returns a random female athlete.

Returns
Female athlete.
faker::sport::femaleAthlete() // "Serena Williams"
FAKER_CXX_EXPORT std::string_view femaleAthlete()
Returns a random female athlete.

◆ maleAthlete()

FAKER_CXX_EXPORT std::string_view faker::sport::maleAthlete ( )

Returns a random male athlete.

Returns
Male athlete.
faker::sport::maleAthlete() // "Cristiano Ronaldo"
FAKER_CXX_EXPORT std::string_view maleAthlete()
Returns a random male athlete.

◆ soccerTeam()

FAKER_CXX_EXPORT std::string_view faker::sport::soccerTeam ( )

Returns a random soccer team.

Returns
Coccer team.
faker::sport::soccerTeam() // "Manchester United"
FAKER_CXX_EXPORT std::string_view soccerTeam()
Returns a random soccer team.

◆ sportEvent()

FAKER_CXX_EXPORT std::string_view faker::sport::sportEvent ( )

Returns a random Sport Event.

Returns
Sport Event.
faker::sport::sportEvent() // "Super Bowl"
FAKER_CXX_EXPORT std::string_view sportEvent()
Returns a random Sport Event.

◆ sportName()

FAKER_CXX_EXPORT std::string_view faker::sport::sportName ( )

Returns a random sport.

Returns
Sport.
faker::sport::sport() // "football"