Project

General

Profile

How to know whether the value of corresponding key exists

Added by Mark Allen over 6 years ago

For example, I have a Canon raw file "test.cr2",the code "cout<<“artist: ”<< exifData["Exif.Image.Artist"]<<endl;" is executed, it throws exception "value not set". How to know whether the value of corresponding key exists,and to avoid throwing exception.


    (1-1/1)