add within
This commit is contained in:
12
bin/main.cpp
12
bin/main.cpp
@@ -1,11 +1,17 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "string/string.hpp"
|
||||
#include "range/range.hpp"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
std::string str { "asdf,qwer,zxcv" };
|
||||
hack::v_str v = hack::split_str(str, ',');
|
||||
{// ex: split_str
|
||||
std::string str { "asdf,qwer,zxcv" };
|
||||
hack::v_str v = hack::split_str(str, ',');
|
||||
for (const auto& c : v) std::cout << c << std::endl;
|
||||
}
|
||||
|
||||
for (const auto& c : v) std::cout << c << std::endl;
|
||||
{// ex: within
|
||||
std::cout << hack::within(12, 34, 12, 23, 31) << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
deps += string_dep
|
||||
deps += range_dep
|
||||
|
||||
executable(
|
||||
'hack', 'main.cpp',
|
||||
|
||||
Reference in New Issue
Block a user