-- Leo's gemini proxy

-- Connecting to vostok.any-key.press:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

vostok C++ coding style


C++ Core Guidelines


Files


<snake_case>.cc

<snake_case>.h


Names


Styles:

CamelCase for class, struct and enum;

snake_case for namespace, variable, function and method;

SCREAMING_CASE for constants.


Prefixes:

Use "m_" prefix for private members of class ;

Use "s_" prefix for static members of class;

Use "g_" prefix for global variables.


class or struct


struct:

data members can vary independently;

all members are public;

does not contain methods.


class:

has an invariant;

all members are private.

-- Response ended

-- Page fetched on Sun May 12 14:18:13 2024