Skip to content

codexpert blog

I see native code

  • Blog
  • Site Home
  • Forum
  • Articles
  • Resources
  • About Us

iota

Assigning algorithms in the C++ Standard Library

2014.04.052014.04.04 by Marius Bancila

The C++ Standard Library provides several algorithms for assigning values to a range (such as a container or a C-array). fill and fill_n std::fill assigns a given value to all the elements in a range. It is available in the header <algorithm>. In the following example all elements of a vector of integers are assigned … Read more

Categories C++, STL Tags algorithm, c++, fill, generate, iota, stl 3 Comments

Recent Posts

  • MFC Support for Direct2D – Transforms (1)
  • MFC Support for Direct2D – Lost Render Target
  • Codexpert – 2017 Articles Summary
  • MFC Support for Windows Animation
  • MFC Support for Direct2D – Saving to files

Tags

AfxMessageBox algorithm atl auto-close c++ C++11 C++14 CBT Hook CFileDialog CMDIFrameWndEx codecs concurrency CScrollView debugging Direct2D DirectWrite directx functions image viewer listview literals MDI application MDI Client mfc multi-select menu multiple selection menu mutex opensource overlay drawing parallel Processes standard stl string threads VC++ vista Visual C++ Visual Studio WIC wic codecs windows Windows API windows imaging component WMI

Categories

Archives

IT Weblogs & Forums

  • Bartek's coding blog
  • Codeguru
  • CppDepend Blog
  • Fluent C++
  • hacking C++
  • High C++ with Ivan Čukić
  • Marc Gregoire’s Blog
  • Marco Arena's blog
  • Marius Bancila's Blog
  • Meeting C++
  • Modernes C++
  • Petr Zemek Blog
  • Simplify C++
  • Standard C++ (isocpp.org)
  • Sutter’s Mill
  • The Old New Thing
  • thisPointer.com
  • Visual C++ Team Blog
  • Vorbrodt's C++ Blog

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2022 codexpert blog • Built with GeneratePress