Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

libs/gil/test/core/histogram/constructor.cpp

//
// Copyright 2020 Debabrata Mandal <mandaldebabrata123@gmail.com>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//

#include <boost/gil/histogram.hpp>

#include <string>

namespace gil = boost::gil;
namespace mp11 = boost::mp11;

void check_histogram_constructors()
{
    gil::histogram<int> h1;
    gil::histogram<int> h2 = h1;
    gil::histogram<int, int, int> h3;
    gil::histogram<int, int ,int> h4(h3);

    gil::histogram<std::string, double, float> d1, d2 = d1, d3(d2);
}

int main() {

    check_histogram_constructors();
    return 0;

}