/
UCS
/
sqlite_orm
Обзор
Документация
Войти
/
UCS
/
sqlite_orm
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
tests/static_tests/static_tests_common.h
35 строк
502 B
fnc12
changed PointerAlignment from Right to Left
21 ноя 2020, 20:38
21 ноя 2020, 20:38
1eaff43
Код
Авторство
О чём код?
#pragma once struct User { int id; const int& getIdByRefConst() const { return this->id; } const int& getIdByRef() { return this->id; } int getIdByValConst() const { return this->id; } void setIdByVal(int id_) { this->id = id_; } void setIdByConstRef(const int& id_) { this->id = id_; } void setIdByRef(int& id_) { this->id = id_; } }; struct Object { int id; }; struct Token : Object {};