Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-6592

Describe Ignite C++ pointer reading and writing semantics

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 2.3
    • documentation
    • None

    Description

      Need to describe how user can read and write nullable values using pointer semantic in Ignite C++:

      // One can write null value like this:
      writer.WriteObject<SomeObject*>(nullptr);
      // And read it like this:
      std::unique_ptr<SomeObject> nullableVal = reader.ReadObject<SomeObject*>();
      if (nullableVal) {
        // Processing...
      }
      

      Attachments

        Activity

          People

            pgarg Prachi Garg
            isapego Igor Sapego
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: