only use cpp behaviours in cpp parts of doc