Implement homework_4: ipb::named_vector and ipb algorithm functions#2
Draft
Copilot wants to merge 4 commits into
Draft
Implement homework_4: ipb::named_vector and ipb algorithm functions#2Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
…, HW3) Agent-Logs-Url: https://github.com/zappateinstein/C-_tutorial/sessions/d20adc7e-20b3-4e5e-90d3-f61058e1178c Co-authored-by: zappateinstein <107572402+zappateinstein@users.noreply.github.com>
Agent-Logs-Url: https://github.com/zappateinstein/Cpp_tutorial/sessions/08e96db2-5a78-4544-8454-11afa21a212b Co-authored-by: zappateinstein <107572402+zappateinstein@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Explain error in homework 4 header file
Implement homework_4: ipb::named_vector and ipb algorithm functions
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
homework_4/include/homework_4.hwas empty andhomework_4/had no CMakeLists.txt, causing the entire test suite to fail to compile.Added:
homework_4/include/homework_4.hipb::named_vector<T>— template wrapper aroundstd::vector<T>with a string name:empty()→truewhen either name or vector is emptysize()→name.size() + vector.size()capacity()/resize()/reserve()delegate to the inner vectoripb:accumulate,count,all_even,clamp,fill,find,print,toupper,sort,rotate(bounds-normalised),reverseAdded:
homework_4/CMakeLists.txtDefines
ipb_algorithmas a CMakeINTERFACE(header-only) library so the test target can link against it.Updated:
homework_4/tests/Catch2 v3 compatibility:
<catch2/catch.hpp>→<catch2/catch_all.hpp>, droppedCATCH_CONFIG_MAIN, switched link target toCatch2::Catch2WithMain.Original prompt
Created from VS Code.