index
:
blog
2015
2016
2017
2018
2019
gh-pages
master
redirect
My blog
Egor Tensin
about
summary
refs
log
blame
commit
diff
stats
homepage
log msg
author
committer
range
path:
root
/
_posts
/
snippets
/
static_vs_inline_vs_unnamed_namespaces
/
inline
/
shared.hpp
blob: 796ea851d0e9ab6294ada0cc55ce52d6d3d5511e (
plain
) (
tree
)
9b3ad53
4759d2a
9b3ad53
1
2
3
4
5
6
#pragma once
inline
int
shared
()
{
static
int
n
=
0
;
return
++
n
;
}