Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Coding style conformance

...

Code Block
bgColor#FFCCCC
langcpp
#include <cstddef> // std::for size_t

static const std::size_t _max_limit = 1024;
std::size_t _limit = 100;

unsigned int getValueget_value(unsigned int count) {
  return count < _limit ? count : _limit;
}

...

Code Block
bgColor#ccccff
langcpp
#include <cstddef> // for size_t

static const std::size_t max_limit = 1024;
std::size_t limit = 100;

unsigned int getValueget_value(unsigned int count) {
  return count < limit ? count : limit;
}

...

Code Block
bgColor#ccccff
langcpp
#include <cinttypes> // for std::int_fast16_t

void f(std::int_fast16_t val) {
  enum { BUFFER_SIZEBufferSize = 80 };
  // ...
}

Exceptions

...

Code Block
bgColor#ccccff
langcpp
// The following declaration of a reserved identifier exists in the libc++ implementation of
// std::basic_string as a public member. The original source code may be found at:
// http://llvm.org/svn/llvm-project/libcxx/trunk/include/string
 
template<class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >allocator<charT>>
class basic_string
 {
  // ...
 
  bool __invariants() const;
};

...