encfs/vendor/github.com/muflihun/easyloggingpp/samples/STL/std-array.cpp
Valient Gough 5f0806c5cc Add "easylogging" from "https://github.com/muflihun/easyloggingpp@master"
git-vendor-name: easylogging
git-vendor-dir: vendor/github.com/muflihun/easyloggingpp
git-vendor-repository: https://github.com/muflihun/easyloggingpp
git-vendor-ref: master
2017-08-05 23:23:41 -07:00

28 lines
479 B
C++

//
// This file is part of Easylogging++ samples
// Demonstration of STL array (std::array) logging, this requires ELPP_LOG_STD_ARRAY macro (recommended to define it in Makefile)
//
// Revision 1.1
// @author mkhan3189
//
#define ELPP_LOG_STD_ARRAY
#include "easylogging++.h"
#include <array>
INITIALIZE_EASYLOGGINGPP
int main (void) {
std::array<int, 5> arr;
arr[0] = 1;
arr[1] = 2;
arr[2] = 3;
arr[3] = 4;
arr[4] = 5;
LOG(INFO) << arr;
return 0;
}