Skip to content

Instantly share code, notes, and snippets.

@danlark1

danlark1/inline.cpp

Created Oct 4, 2020
Embed
What would you like to do?
// Implicitly "inline"d
constexpr int foo() {
//...
}
// Implicitly "inline"d
template <class T>
int bar() {
//...
}
class Foo {
public:
// Implicitly "inline"d
int f() {
// ...
}
// Implicitly "inline"d from C++17
static constexpr std::string_view kMyBestString = "abacaba";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.