Skip to content

cpp-pre/named_param

Repository files navigation

cpp-pre::named_param

A small header to create named_parameter in C++.

This is useful when implementing API with many parameters, sometimes optional ones, it allows to specify the name of the parameter on the call-site.

An example would be :

  http_get("http://github.com", on_success = [](auto&& result) {
    std::cout << "The result is : " << result.http_code << std::endl;
  });

Usage

See INSTALL and simple_named_parameter.cpp for an example.

License

Boost Sofware License, please just reproduce copyrights :

Copyright (c) 2018 Damien Buhl alias daminetreg

About

Simple named parameters header

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published