Your own namespaces
Në shqip: Namespace-at e tu
ShpjegimiSQ
Me namespace fjalori { ... } i grupon funksionet dhe klasat e tua që të mos përplasen me ato të librarive të tjera. I thërret me fjalori::kerko() ose me using.
EnglishEN
With namespace fjalori { ... } you group your functions and classes so they don't clash with other libraries'. You call them with fjalori::search() or with using.
Si ta mendosh
Si mbiemri i familjes që i dallon njerëzit me të njëjtin emër.
Lexoje në anglisht
Like a family surname telling people with the same first name apart.
Shembull kodicpp
namespace fjalori::kerkimi {
int numero(const std::string& q) { return 0; }
}
fjalori::kerkimi::numero("api");