Last active
January 20, 2016 16:56
-
-
Save welll/0fc2a1285d2b196f9481 to your computer and use it in GitHub Desktop.
C++ - namespace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using namespace foo; //generic, the same behaviour in Java, include com.foo.* | |
using bar;// specific, the same behaviour in Java, include com.package.bar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void function_test(std::string a, std::function<void (const string&)> original_function{ | |
std::sting b = create_random_string(); | |
return [b, original_function](const string_t& c) | |
{ | |
if (validate(b, c)) | |
{ | |
original_function(c); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment