Chapter 1: Including C++

Lets’s use chapter to add some C++ code here:

With .. code-block:: cpp we can add C++ snippets:

int main()
{
  std::cout << "hello sphinx!\n";
  return 0;
}

Source Code documentation

class foo

foo is super important for this sphinx project

Public Functions

int do_some_work(int bar)

This does some work

Parameters:

bar – this parameter is mandatory.

Returns:

The work results

Private Members

std::size_t m_member

a private member. which we can not ignore