Sha256: 5ec5f23b4215934dbf4e65c78f584886b6cb05621789693ab097a81820c9ed0f

Contents?: true

Size: 790 Bytes

Versions: 16

Compression:

Stored size: 790 Bytes

Contents

// Copyright (c) 2018-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/

#include <iostream>

#include <tao/json.hpp>

#define PRINT_SIZE( ... ) \
   std::cout << #__VA_ARGS__ << " size " << sizeof( __VA_ARGS__ ) << " align " << alignof( __VA_ARGS__ ) << std::endl;

int main( int /*unused*/, char** /*unused*/ )
{
   PRINT_SIZE( tao::json::value );
   PRINT_SIZE( std::vector< tao::json::value > );
   PRINT_SIZE( std::string );
   PRINT_SIZE( std::string_view );
   PRINT_SIZE( tao::binary );
   PRINT_SIZE( tao::binary_view );
   PRINT_SIZE( std::vector< tao::json::value > );
   PRINT_SIZE( std::map< std::string, tao::json::value > );
   PRINT_SIZE( tao::json::token );
   PRINT_SIZE( tao::json::pointer );
   return 0;
}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
couchbase-3.0.0.alpha.4-x86_64-linux ext/third_party/json/src/perf/json/sizes.cpp
couchbase-3.0.0.alpha.4-x86_64-darwin-19 ext/third_party/json/src/perf/json/sizes.cpp
couchbase-3.0.0.alpha.4-universal-darwin-19 ext/third_party/json/src/perf/json/sizes.cpp
couchbase-3.0.0.alpha.4 ext/third_party/json/src/perf/json/sizes.cpp
couchbase-3.0.0.alpha.3-x86_64-linux ext/third_party/json/src/perf/json/sizes.cpp
couchbase-3.0.0.alpha.3-x86_64-darwin-19 ext/third_party/json/src/perf/json/sizes.cpp
couchbase-3.0.0.alpha.3-universal-darwin-19 ext/third_party/json/src/perf/json/sizes.cpp
couchbase-3.0.0.alpha.3 ext/third_party/json/src/perf/json/sizes.cpp
couchbase-3.0.0.alpha.2-x86_64-linux ext/third_party/json/src/perf/json/sizes.cpp
couchbase-3.0.0.alpha.2-x86_64-darwin-19 ext/third_party/json/src/perf/json/sizes.cpp
couchbase-3.0.0.alpha.2-universal-darwin-19 ext/third_party/json/src/perf/json/sizes.cpp
couchbase-3.0.0.alpha.2 ext/third_party/json/src/perf/json/sizes.cpp
couchbase-3.0.0.alpha.1-x86_64-linux ext/third_party/json/src/perf/json/sizes.cpp
couchbase-3.0.0.alpha.1-x86_64-darwin-19 ext/third_party/json/src/perf/json/sizes.cpp
couchbase-3.0.0.alpha.1-universal-darwin-19 ext/third_party/json/src/perf/json/sizes.cpp
couchbase-3.0.0.alpha.1 ext/third_party/json/src/perf/json/sizes.cpp