mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-08 18:33:58 +00:00
46 lines
1.3 KiB
C++
46 lines
1.3 KiB
C++
int global_integer;
|
|
static int global_static_integer;
|
|
const int global_const_integer = 1;
|
|
static const int global_static_const_integer = 2;
|
|
enum global_enum { enumerator };
|
|
|
|
namespace example
|
|
{
|
|
int namespace_integer;
|
|
static int namespace_static_integer;
|
|
const int namespace_const_integer = 1;
|
|
static const int namespace_static_const_integer = 2;
|
|
enum namespace_enum { enumerator };
|
|
|
|
class example
|
|
{
|
|
public:
|
|
int integer;
|
|
static int static_integer;
|
|
mutable int mutable_integer;
|
|
const int const_integer;
|
|
static const int static_const_integer;
|
|
|
|
enum class_enum { enumerator };
|
|
protected:
|
|
int protected_integer;
|
|
static int protected_static_integer;
|
|
mutable int protected_mutable_integer;
|
|
const int protected_const_integer;
|
|
static const int protected_static_const_integer;
|
|
|
|
enum protected_class_enum { enumerator2 };
|
|
private:
|
|
int private_integer;
|
|
static int private_static_integer;
|
|
mutable int private_mutable_integer;
|
|
const int private_const_integer;
|
|
static const int private_static_const_integer;
|
|
|
|
enum private_class_enum { enumerator3 };
|
|
};
|
|
|
|
template <typename TypeParameter, int NonTypeParameter,
|
|
typename TypeParameterWithDefault = int>
|
|
struct example_template {};
|
|
} |