summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorWolfgang Draxinger <code@datenwolf.net>2020-03-30 20:49:39 +0200
committerWolfgang Draxinger <code@datenwolf.net>2020-03-30 20:49:39 +0200
commit0ed25c2edbd55cc0532f6ca9f919fb09b8537179 (patch)
tree72fe3af6ee4536fc952668b2220b57a42e7ea04b /example
parent51be437989033e28aedb9ba8d72c2b2fcadd463e (diff)
parent793e8c792d8118955de39c050fbc3fe3eb46c4c6 (diff)
downloaddwu-0ed25c2edbd55cc0532f6ca9f919fb09b8537179.tar.gz
dwu-0ed25c2edbd55cc0532f6ca9f919fb09b8537179.tar.bz2
Merge branch 'master' of datenwolf.net:/srv/git/dwu
Diffstat (limited to 'example')
-rw-r--r--example/operators.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/example/operators.cc b/example/operators.cc
index 9656e1c..c22e87a 100644
--- a/example/operators.cc
+++ b/example/operators.cc
@@ -16,7 +16,8 @@ static void dump(S const &s, T const &v)
int main(int argc, char *argv[])
{
// syntactic sugar operators for same container, same type
- using namespace dwu::operators;
+ using namespace dwu::operators::arithmetic;
+ using namespace dwu::operators::shift;
std::vector<int> va = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
dump("va: ", va);
@@ -45,7 +46,7 @@ int main(int argc, char *argv[])
{
// syntactic sugar for mixed container, mixed type
- using namespace dwu::operators_xcxt;
+ using namespace dwu::operators_xcxt::arithmetic;
std::list<float> la = {100, 101, 101, 103, 104, 105};
dump("la: ", la);
@@ -55,7 +56,7 @@ int main(int argc, char *argv[])
{
// syntactic sugar for mixed container, same type
- using namespace dwu::operators_xc;
+ using namespace dwu::operators_xc::arithmetic;
std::list<int> lb = {200, 201, 201, 203, 204, 205};
dump("lb: ", lb);
@@ -65,7 +66,7 @@ int main(int argc, char *argv[])
{
// syntactic sugar for same container, mixed type
- using namespace dwu::operators_xt;
+ using namespace dwu::operators_xt::arithmetic;
std::vector<float> ve = {300, 301, 301, 303, 304, 305};
dump("ve: ", ve);