Skip to content
Snippets Groups Projects
Select Git revision
  • a1331861ca16bd39b0654230c00a6aba3d3aec66
  • master default protected
  • staggered-max
  • unifed-object
  • no_Amalgamated
  • standard_stb
  • parallel_doc_fix
  • release_0.9.3
  • cmake_mpich_tests
  • update_install
  • external_VORO
  • cmake_add_soversion
  • iterative_method
  • cmake_install
  • fixes_042023
  • tensor_max
  • personal/schulz3/tensor_max
  • releases/v0.9
  • ForceBasedDevel
  • refactor
  • feature/simple_test_cases
  • v0.9.3
  • v0.9.2
  • v0.9.1
  • v0.9.0
  • v0.9.0-rc2
26 results

ALL.hpp

Blame
  • fold_xpr_demo3.cc 492 B
    #include <vector>
    #include <iostream>
    #include <algorithm>
    #include <ranges>
    #include <string>
    #include "print_tuple.hh"
    
    auto max_of_multiple(auto ... containers)
    {
        return std::make_tuple(std::ranges::max(containers) ...);
    }
    
    auto main() -> int
    {
        std::vector v1{8.2, 84., 9.1, 33.1, 9.33, 8.2, 8.3};
        std::vector v2{9,1,2,8,3,1,4,2,0,8,1};
        std::vector<std::string> v3{"Compact", "code", "with", "fold", "expressions"};
        std::cout << max_of_multiple(v1, v2, v3) << "\n";
    }