Skip to content

Draft: Add guidelines for representing pairs and inserting items in maps

Eduardo Almeida requested to merge edalm/ns-3-dev:map-insert into master

Add the following guidelines to the coding style document:

  • Recommended representation of std::pair and std::tuple.
  • Guidelines for inserting items in std::map.

Fix the ns-3 code to adopt the new coding style. Moreover, I added an additional commit to initialize vectors directly with braces, instead of pushing elements one-by-one in one LTE example.

Edited by Eduardo Almeida

Merge request reports