boostbook/test/doxygen/boost/example.hpp
Daniel James 1df2cadc32 Some small documentation fixes for the release.
Merged revisions 52348-52350 via svnmerge from 
https://svn.boost.org/svn/boost/trunk

........
  r52348 | danieljames | 2009-04-12 11:50:31 +0100 (Sun, 12 Apr 2009) | 1 line
  
  Use a test file that's actually valid C++.
........
  r52349 | danieljames | 2009-04-12 11:50:43 +0100 (Sun, 12 Apr 2009) | 3 lines
  
  Revert support for static mutable variables.
  
  Of course there's no such thing.
........
  r52350 | danieljames | 2009-04-12 11:50:57 +0100 (Sun, 12 Apr 2009) | 1 line
  
  Note change to operator[] in the unordered release notes.
........


[SVN r52351]
2009-04-12 10:54:44 +00:00

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 {};
}