add important note
This commit is contained in:
parent
1c7a644161
commit
fa9972b9d5
@ -43,7 +43,8 @@ int main(int argc, char *argv[])
|
|||||||
{// ex: string::split_str
|
{// ex: string::split_str
|
||||||
std::string str { "asdf,qwer,zxcv" };
|
std::string str { "asdf,qwer,zxcv" };
|
||||||
hack::string::v_str v = hack::string::split_str(str, ',');
|
hack::string::v_str v = hack::string::split_str(str, ',');
|
||||||
for (const auto& c : v) hack::log()(c);
|
hack::log log;
|
||||||
|
for (const auto& c : v) log(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
{// ex: renge::within
|
{// ex: renge::within
|
||||||
@ -53,6 +54,7 @@ int main(int argc, char *argv[])
|
|||||||
{// ex: container::vector_multiset
|
{// ex: container::vector_multiset
|
||||||
std::vector<std::string> v;
|
std::vector<std::string> v;
|
||||||
hack::container::vector_multiset(v, "asdf", "qwer", "zcv");
|
hack::container::vector_multiset(v, "asdf", "qwer", "zcv");
|
||||||
|
// of course you understand that a new logger object is created here every time !!!
|
||||||
for(const auto& c : v) hack::log()(c);
|
for(const auto& c : v) hack::log()(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user