Lattice Builder Manual
Software Package for Constructing Rank-1 Lattices
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
tutorial/TextStream.cc
This example shows how to use TextStream output stream operators.
// Copyright (c) 2012 David Munger, Pierre L'Ecuyer, Université de Montréal.
//
// This file is part of Lattice Builder.
//
// Lattice Builder is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Lattice Builder is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Lattice Builder. If not, see <http://www.gnu.org/licenses/>.
#include <iostream>
#include <vector>
#include "latbuilder/TextStream.h"
using namespace
LatBuilder
;
int
main()
{
using
TextStream::operator<<;
std::cout << std::vector<int>{1, 2, 3, 4, 5} << std::endl;
return
0;
}
Generated on Mon Nov 30 2015 17:29:06 for Lattice Builder Manual by
1.8.10