rename get_instance function

This commit is contained in:
chatlanin 2023-12-25 10:45:03 +03:00
parent 7b97733d75
commit ad2c54649d
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ auto main(int argc, char *argv[]) -> int
}
{// ex: singleton
test_singleton::get_instance().print();
test_singleton::instance().print();
}
}

View File

@ -19,7 +19,7 @@ namespace hack::utils
template<typename T>
struct singleton : public no_move, no_copy
{
static T& get_instance()
static T& instance()
{
static T t;
return t;