What is the meaning of the word "elegiac"?

Definitions:

  1. expressing sorrow often for something past copy to clipboard adjective
    • an elegiac lament for youthful ideals copy to clipboard
  2. resembling or characteristic of or appropriate to an elegy copy to clipboard adjective
    • an elegiac poem on a friend's death copy to clipboard