Skip to content

Instantly share code, notes, and snippets.

@danlark1
Created October 4, 2020 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danlark1/b9f45c0e319ad80ebca85241ca821155 to your computer and use it in GitHub Desktop.
Save danlark1/b9f45c0e319ad80ebca85241ca821155 to your computer and use it in GitHub Desktop.
// 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