Code Monkey home page Code Monkey logo

callable_traits's People

Contributors

badair avatar brunocodutra avatar danieljames avatar eldiener avatar hdembinski avatar lastique avatar ldionne avatar pdimov avatar sdarwin avatar tzlaine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

callable_traits's Issues

Address naming issues inherited from p0172r0

  • has_member_qualifiers
  • is_const_member
  • is_volatile_member
  • is_cv_member
  • is_lvalue_reference_member
  • is_rvalue_reference_member
  • add_member_const
  • add_member_volatile
  • add_member_cv
  • add_member_lvalue_reference
  • add_member_rvalue_reference
  • remove_member_const
  • remove_member_volatile
  • remove_member_cv
  • remove_member_reference
  • remove_member_lvalue_reference
  • remove_member_rvalue_reference
  • remove_all_member_qualifiers

The names in CallableTraits are based on the paper http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0172r0.html.

Currently the CallableTraits implementation applies this logic to function objects' operator(), but these names do not make this behavior obvious at all. Either separate that behavior into new traits, or rename these to make more sense.

Also, address "has" vs. "is", "qualifiers" on some but not others, etc.

Consider _t and _v like the standard library... :(

traits<T> allows T to be a [smart] pointer to a function object

It would be a cool feature were it only consistent with std::invoke, which is more strict. This is accomplished in general.hpp and normalize_reference.hpp. Should this functionality be removed, or simply separated? Either way, it should probably not remain in its current state, since CallableTraits will probably be expected to be consistent with std::invoke.

should parameter "container operations" go in their own namespace?

Reasons I'm asking:

  • names like push_arg_front don't imply that multiple types can be pushed (they can)
  • names like push_args_front put too much emphasis on the fact that multiple types can be pushed
  • callable_traits::push_front is too generic
  • callable_traits::parms::push_front or something like that might be nice.

Thoughts?

The Concepts section should define "elements" for each concept

This will make the reference documentation much less wooden, so that we can use T -> Args... psuedocode instead of resorting to standard-ese such as "When T is a MemberFunctionPointer, let Args... represent the parameter types in the signature of T...".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.