Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. Quiz Time! Prepending items to QVector
Forum Updated to NodeBB v4.3 + New Features

Quiz Time! Prepending items to QVector

Scheduled Pinned Locked Moved Solved The Lounge
22 Posts 12 Posters 4.6k Views 7 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • kshegunovK kshegunov

    @VRonin I'm late to the party, as usual ...
    ... and also as usual I probably sound like a broken record, but what your task sounds like is actually a stack, not a vector ... ;)

    VRoninV Offline
    VRoninV Offline
    VRonin
    wrote on last edited by VRonin
    #21

    @kshegunov said in Quiz Time! Prepending items to QVector:

    but what your task sounds like is actually a stack, not a vector

    Indeed, this was an iper-semplification of my problem to solve the academic dilemma.
    I agree that a stack or, as @jeremy_k already pointed out, using reverse iterators would achieve the same

    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
    ~Napoleon Bonaparte

    On a crusade to banish setIndexWidget() from the holy land of Qt

    1 Reply Last reply
    2
    • D Offline
      D Offline
      Dixon154
      Banned
      wrote on last edited by
      #22
      This post is deleted!
      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved