Skip to content
Snippets Groups Projects
Forked from Alchemy Viewer / Alchemy Viewer
Source project has a limited visibility.
  • Nat Goodspeed's avatar
    c6826034
    DRTVWR-558: Extend LL::apply() to LLSD array arguments. · c6826034
    Nat Goodspeed authored
    Make apply(function, std::array) and apply(function, std::vector) available
    even when we borrow the C++17 implementation of apply(function, std::tuple).
    
    Add apply(function, LLSD) with interpretations:
    
    * isUndefined() is treated as an empty array, for calling a nullary function
    * scalar LLSD is treated as a single-entry array, for calling a unary function
    * isArray() converts function parameters using LLSDParam
    * isMap() is an error.
    
    Add unit tests for all flavors of LL::apply().
    
    (cherry picked from commit 3006c24251c6259d00df9e0f4f66b8a617e6026d)
    c6826034
    History
    DRTVWR-558: Extend LL::apply() to LLSD array arguments.
    Nat Goodspeed authored
    Make apply(function, std::array) and apply(function, std::vector) available
    even when we borrow the C++17 implementation of apply(function, std::tuple).
    
    Add apply(function, LLSD) with interpretations:
    
    * isUndefined() is treated as an empty array, for calling a nullary function
    * scalar LLSD is treated as a single-entry array, for calling a unary function
    * isArray() converts function parameters using LLSDParam
    * isMap() is an error.
    
    Add unit tests for all flavors of LL::apply().
    
    (cherry picked from commit 3006c24251c6259d00df9e0f4f66b8a617e6026d)
Code owners
Assign users and groups as approvers for specific file changes. Learn more.